我使用Macport安装并选择Python2.7。 Python已被选中,但在运行pip时,它不会检测Python2.7下的模块。通过运行 pip --version ,它返回:
pip 1.0.1 from /Library/Python/2.6/site-packages/pip-1.0.1-py2.6.egg (python 2.6)
在运行sudo port install py27-pip时,我得到以下信息:
Error: Unable to open port: couldn't change working directory to "/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/gettext": no such file or directory
Error: Unable to execute port: upgrade python27 failed
任何帮助将不胜感激。