编辑在命令行
这里是一个容易的事情,可能更好地为你试试这个。打开终端(应用程序 - >实用程序 - >终端)并将其作为外壳脚本运行。您也可以运行单个命令。
#!/bin/sh
cd ~
# Downloads python setuptools for 2.6
curl -o setuptools-0.6c11-py2.6.egg http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg#md5=bfa92100bd772d5a213eedd356d64086
# installs it, will probably prompt you for password
sudo sh setuptools-0.6c11-py2.6.egg
# clean up and delete egg
rm setuptools-0.6c11-py2.6.egg
东西下面是原始响应
我只是做这个我自己的Mac机上,安装去了没有问题。你打开一个终端来做到这一点?
我下载setuptools的到我的下载文件夹,然后打开一个终端,这样做:
> cd ~/Downloads
> sudo sh setuptools-0.6c11-py2.6.egg
Password:
Processing setuptools-0.6c11-py2.6.egg
Removing /Library/Python/2.6/site-packages/setuptools-0.6c11-py2.6.egg
Copying setuptools-0.6c11-py2.6.egg to /Library/Python/2.6/site-packages
setuptools 0.6c11 is already the active version in easy-install.pth
Installing easy_install script to /usr/local/bin
Installing easy_install-2.6 script to /usr/local/bin
Installed /Library/Python/2.6/site-packages/setuptools-0.6c11-py2.6.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11