방금 Mac에서 Python을 2.6.4로 업데이트했습니다. dmg 패키지에서 설치했습니다.
바이너리가 Python 경로를 올바르게 설정하지 않은 것 같아서 다음을 추가 '/usr/local/lib/python2.6/site-packages'
했습니다..bash_profile
>>> pprint.pprint(sys.path)
['',
'/Users/Bryan/work/django-trunk',
'/usr/local/lib/python2.6/site-packages',
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages']
분명히 iPython을 실행할 수 없기 때문에 필요한 모든 경로가 아닙니다.
$ ipython
Traceback (most recent call last):
File "/usr/local/bin/ipython", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named `pkg_resources`
Google 검색을 수행했지만 설치 방법을 알 수 pkg_resources
없거나 경로에 있는지 확인할 수 없습니다 .
이 문제를 해결하려면 어떻게해야합니까?