python - 使用 easy_install 安装 mechanize

标签 python mechanize easy-install

我刚刚下载了 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/

相关文章:

java - 将python斐波那契代码转换为java?

python - 将 Python 与 mechanize 和 BeautifulSoup 捆绑在一起

代理背后的 Docker Centos 7 easy_install supervisor ssl 问题

python - tokyo-python 安装问题

python - 如何在 Windows 上的 http 代理后面使用 easy_install?

python - 如何在 python 中平滑具有不同高斯函数的二维数组的元素?

python - Statsmodels:计算拟合值和 R 平方

Python Mechanize文件上传不断上传1kb文件

python - 证书错误 : hostname doesn't match

python - 如何使用 setuptools Windows 安装程序在开始菜单中创建快捷方式