easy_install:コマンドが見つかりません


20

私はこれに続いてUbuntu 18.04にMYCROFTをインストールしようとしています:LINK

cd ~/
git clone https://github.com/MycroftAI/mycroft-core.git
cd mycroft-core
bash dev_setup.sh

このエラーが発生しています:

sudo: easy_install: command not found

このエラーは、スクリプトdev_setup.shの168行目が実行を試みているためです。

easy_install pip==9.0.1 # force version of pip

私はインストールしました:

sudo apt-get install python-setuptools
sudo apt-get install python-pip python-dev build-essential

しかし

easy_install

コマンドはまだ認識されません。何か案は?

更新:

スクリプト内のその行をコメントアウトすることにより、スクリプトを実行できます。ただし、音声テストを実行すると、モジュールエラー、音声認識モジュールがありません


Ubuntu 18.04 LTSのクリーンインストール(エラーの--depth=1有無にかかわらず)でエラーを再現できません。Python関連のPPAはありますか?
N0rbert

2
easy_installの一部ですpython-setuptools。の出力をapt policy python-setuptools質問に追加してください。
チャイT.レックス

回答:


10

Ubuntu 18.04ではpip install python-setuptools、フルパスでeasy_installを実行できました。

python /usr/lib/python2.7/dist-packages/easy_install.py pip

I 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!


Thank you for this answer! I was frustrating myself because I was using find / -xdev -name easy_install so I wasn't finding easy_install.py (because of the .py extension). You probably just saved me from trying some ridiculously desperate solution.
s-k-y-e---c-a-p-t-a-i-n

You're welcome! A trick I keep in my back pocket when find doesn't return anything is falling back to a more fuzzy search like: find / -iname '*easy_install*'. This will return files containing case-insensitive easy_install anywhere in the name; even if it's prefixed or suffixed with something.
berto

7

According 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.



1

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-pip

and check pip version-

pip --version

after that, we have to install build-essential for python-dev

sudo apt-get install build-essential python-dev

and python setup-tools

sudo apt-get install python-setuptools

And finally, we are able to install pymongo by following command-

python -m pip install pymongo

It worked for me, may it will work for you too.

弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.