easy_install: command not found
I am trying to install MYCROFT on Ubuntu 18.04 following this: LINK
cd ~/
git clone
cd mycroft-core
bash dev_setup.shI am getting this error:
sudo: easy_install: command not foundThis error is because the script dev_setup.sh line 168 is trying to execute:
easy_install pip==9.0.1 # force version of pipI have installed:
sudo apt-get install python-setuptools
sudo apt-get install python-pip python-dev build-essentialHowever the
easy_install
command is still not recognised. Any ideas?
Update:
By commenting out that line in the script allows the script to run. However there is a module error, voice recognition module missing, when doing an audio test.
25 Answers
On Ubuntu 18.04 I was able to pip install python-setuptools and run easy_install by full-path'ing it:
python /usr/lib/python2.7/dist-packages/easy_install.py pipI prefer this over installing the python-pip system package because pip is moving faster than the distros update it, so I install it from PyPI.
HTH!
3I got this from this link: I am not able to install easy_install in my ubuntu.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-setuptoolsIf that doesn't work, try this:
sudo apt-get install python-pip
sudo pip install <pypi-package>Credits to: and
1According to the changelog easy_install was removed from the python-setuptools package.
I've got no good news for you; I've not found a solution short of updating the legacy scripts to use pip (and hoping the version pip installs works).
In your case its pip you're trying to get from easy_install, so you can probably omit the line since the version of pip in bionic is 9.0.1-2. A better change to the script might check that pip --version is less than 9.0.1 before trying to install that alternate version via easy_install.
On Ubuntu 18.04, I got the same error several times, I searched on many links but didn't get a useful solution.
For this, the version of the pip should be less than or the same as 9.0.1.
First of all, install the pip for python version 3 from-
sudo apt install python3-pipand check pip version-
pip --versionafter that, we have to install build-essential for python-dev
sudo apt-get install build-essential python-devand python setup-tools
sudo apt-get install python-setuptoolsAnd finally, we are able to install pymongo by following command-
python -m pip install pymongoIt worked for me, may it will work for you too.
1easy_install is not a part of python setup-tools so instead you can go for pip3 for installing python modules if pip is not found the following should solve your issue.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python3-pip