简体   繁体   English

运行图,pkg_resources.DistributionNotFound时出错

[英]Errors running Fig, pkg_resources.DistributionNotFound

I downloaded fig but when I run it, I get this error: 我下载了无花果,但是当我运行它时,出现此错误:

 File "/usr/local/bin/fig", line 5, in <module>
   from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python    /pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
   needed = self.resolve(parse_requirements(requirements))
 File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python    /pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: six>=1.3.0,<2

Figured it out! 弄清楚了!

I installed Python packages using both pip and easy_install. 我同时使用pip和easy_install安装了Python软件包。 I just had to use easy_install and install every one of the packages it said it was missing. 我只需要使用easy_install并安装它说缺少的每个软件包。

sudo easy_install six
sudo easy_install requests

You probably want to use either 您可能想要使用

pip install fig

or if you have the source repo 或者如果您有源回购

pip install -r requirements.txt 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM