在多次尝试使用 macports 后,我正在使用 mac 我决定切换到常规 python 路径,所以现在我的 python 路径是
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
但是当我安装 django 时,我的 mac 仍然使用苹果安装的 python,我如何告诉 easy_install 使用上面的 python 路径而不是苹果安装 python:
[~/mysite/djangosite]$sudo easy_install django==1.5
Searching for django==1.5
Best match: Django 1.5
Processing Django-1.5-py2.6.egg
Django 1.5 is already the active version in easy-install.pth
Installing django-admin.py script to /usr/local/bin
Using /Library/Python/2.6/site-packages/Django-1.5-py2.6.egg
Processing dependencies for django==1.5
Finished processing dependencies for django==1.5
anu@localhost:[~/mysite/djangosite]$which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
我试过哪个easy_install
来看看什么easy_install
被使用了,/usr/bin/easy_install
我也进去/Library/Frameworks/Python.framework/Versions/2.7/bin
检查了easy_install,但我没有找到easy_install ..
localhost:[/Library/Frameworks/Python.framework/Versions/2.7/bin]$ls
2to3 idle2 pydoc2.7 python2 python2.7-32 pythonw2 smtpd.py
2to3-2 idle2.7 python python2-32 python2.7-config pythonw2-32 smtpd2.7.py
2to3-2.7 pydoc python-32 python2-config pythonw pythonw2.7 smtpd2.py
idle pydoc2 python-config python2.7 pythonw-32 pythonw2.7-32
/Library/Frameworks/Python.framework/Versions/2.7/bin/easy_install*
什么都不给,