easy_install:找不到命令
我试图在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的
命令仍然无法识别。 有任何想法吗?
更新:
通过注释掉脚本中的该行允许脚本运行。 但是,在进行音频测试时,会出现模块错误, 语音识别模块丢失 。
根据changelog, easy_install
已从python-setuptools
包中删除。
我对你没有好消息; 我没有找到一个解决方案,没有更新旧脚本以使用pip
(并希望版本pip
安装工作)。
在你的情况下你的pip
你试图从easy_install
获得,所以你可以省略该行,因为bionic中的pip
版本是9.0.1-2
。 在尝试通过easy_install
安装备用版本之前,对脚本进行更好的更改可能会检查pip --version
是否小于9.0.1
。
我从这个链接得到了这个: 我无法在我的ubuntu中安装easy_install 。
sudo apt-get update sudo apt-get upgrade sudo apt-get install python-setuptools
如果这不起作用,试试这个:
sudo apt-get install python-pip sudo pip install
致记自: https : //askubuntu.com/users/157039/m-tarun和https://askubuntu.com/users/20837/timo
在Ubuntu 18.04上,我能够pip install python-setuptools
并通过全路径运行easy_install:
python /usr/lib/python2.7/dist-packages/easy_install.py pip
我比安装python-pip
系统包更喜欢这个,因为pip
比发行版更新它的速度更快,所以我从PyPI安装它。
HTH!