2014-11-25 60 views
0

我使用以下命令sudo pip install -U figArch Linux上安裝了fig。安裝完成後,我試着運行fig --version但是這給了我以下錯誤:安裝後無花果拋出異常

Traceback (most recent call last): 
    File "/usr/bin/fig", line 5, in <module> 
    from pkg_resources import load_entry_point 
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2880, in <module> 
    working_set = WorkingSet._build_master() 
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 432, in _build_master 
    ws.require(__requires__) 
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 741, in require 
    needed = self.resolve(parse_requirements(requirements)) 
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve 
    raise DistributionNotFound(req) 
    pkg_resources.DistributionNotFound: fig==1.0.1 

因爲它可以在錯誤中可以看出,我用python2。我也嘗試使用python3,但我有同樣的錯誤。

誰能給我一個提示?

回答

0

我安裝了figpython3設置爲默認值。將python2設置爲默認值後,我已重新安裝fig,現在一切正常。

0

你可以嘗試升級PIP與使用easy_install:

easy_install --upgrade pip 

然後嘗試重新安裝圖。