編輯在命令行
這裏是一個容易的事情,可能更好地爲你試試這個。打開終端(應用程序 - >實用程序 - >終端)並將其作爲外殼腳本運行。您也可以運行單個命令。
#!/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