我使用以下命令sudo pip install -U fig
在Arch 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
,但我有同樣的錯誤。
誰能給我一個提示?