2014-01-26 42 views
1

我可以導入外殼通過pkg_resources,但我不知道爲什麼,當我嘗試運行pylint的我得到這個錯誤,有的有很多的工具...找不到此錯誤pkg_resources分配?

Traceback (most recent call last): 
    File "/usr/local/bin/pylint", line 5, in <module> 
    from pkg_resources import load_entry_point 
    File "build/bdist.macosx-10.9-intel/egg/pkg_resources.py", line 2697, in <module> 

    File "build/bdist.macosx-10.9-intel/egg/pkg_resources.py", line 669, in require 
    self.add(dist) 
    File "build/bdist.macosx-10.9-intel/egg/pkg_resources.py", line 572, in resolve 

pkg_resources.DistributionNotFound: pylint==1.0.0 

通過pkg_resources已經嚴重使我的生活苦不堪言,我使用OSx 10.7修復它,但我想當我升級到10.9 ..

請在將它標記爲與我重複聊天之前,可能有其他原因的問題..我會給你更多的信息,因爲你問!

回答

0

我得到這個錯誤,我試圖升級我的點。這是由於我使用easy_install安裝了pip而導致分發錯誤。我在PowerShell窗口中使用下面的命令,我沒有問題了。

easy_install --upgrade pip