我刚刚下载了 easy_install,但我在安装 mechanize 时遇到问题,我是否应该随时处理站点包。在下面的第一次尝试中,我得到了一个错误。在下面的第二次尝试中,我得到命令未找到,这很奇怪,因为我确定它已下载。
names-computer:~ names$ cd /Users/names/Desktop/
names-computer:~/Desktop names$ sh /Users/names/Desktop/mechanize-0.1.9-py2.5.egg
/Users/names/Desktop/mechanize-0.1.9-py2.5.egg: /Users/names/Desktop/mechanize-0.1.9-py2.5.egg: cannot execute binary file
names-computer:~/Desktop names$ easy_install mechanize
-bash: easy_install: command not found
最佳答案
apt-get install python-setuptools
此命令将在 Ubuntu 上安装 easy_install
。
关于python - 使用 easy_install 安装 mechanize,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2159733/