2012-10-12 42 views
27

我使用easy_install來安裝pip,pip來安裝django,virtualenv和virtualenvwrapper。easy_install:ImportError:未找到入口點('console_scripts','easy_install')

我剛剛回到了它的幾個星期後和Django的似乎不工作了,但更令人擔心的是,我不能重新啓動過程中的easy_install返回以下錯誤:

Traceback (most recent call last): 
    File "/usr/bin/easy_install-2.7", line 10, in <module> 
    load_entry_point('setuptools==0.6c12dev-r88846', 'console_scripts', 'easy_install')() 
    File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 318, in load_entry_point 
    File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2220, in load_entry_point 
ImportError: Entry point ('console_scripts', 'easy_install') not found 

經過一個愉快的狩獵之夜,我很難理解如何解決這個問題。

+1

可能重複[爲什麼運行2.7.3的easy_install是Python容易\ _install不工作在我的Mac?](http://stackoverflow.com/questions/6012246/why-is-python-easy-install-not-worki ng-on-my-mac) – brandonscript

+0

權限被拒絕? – Evgenii

回答

9

您似乎有版本衝突;注意setuptools-0.6c11-py2.7.egg路徑,但/usr/bin/easy_install-2.7腳本想要加載0.6c12dev-r88846

後者是一個開發版本;它具有版本(dev-r88846)中嵌入的Subversion存儲庫的修訂版本號。

我懷疑你有兩個 python裝置;一個是系統版本(在/System/Library和其他安裝有Python安裝程序爲/Library/,並在/usr/bin/存根腳本可能與系統的Python安裝。

如果是這樣,就會有存根的另一個副本在/Library/Python/2.7/bin/easy_install-2.7,這應該正常工作。

+0

感謝您的迴應,我得到你的意見,但我仍然不確定如何解決它。我檢查了你爲python安裝建議的兩個位置。/System/Library中沒有任何內容,但在/ Library/Python下,似乎有多個版本(2.3,2.5,2.6,2.7)。我也不確定如何讓系統使用一個存根。 – xragon

+0

系統的python位置是'/ System/Library/Frameworks/Python.framework/Versions/Current'。我*相信*/Library/Python'位置只是系統python的'site-packages'位置;我現在不確定。 –

1

我有同樣的問題,最終結束了由 /opt/python2.7.3/bin/easy_install其工作的罰款

相關問題