我刚刚安装了easy_install,但是我在安装机械化时遇到问题,我应该在任何时候寻址站点包。在下面的第一个尝试中,我得到了一个错误。在下面的第二次尝试中,我找到了命令,因为我确信它已经下载,所以这是很奇怪的。使用easy_install安装机械化
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
使用ActivePython,您只需运行“pypm install mechanize”。无需安装其他程序(ActivePython也包含easy_install/pip) – 2010-02-27 03:23:19