DistributionNotFound错误:是否有任何名为“ requirements == 0.1”的发行版?

时间:2019-05-20 01:36:02

标签: python

我目前正在从事c。 elegans模拟器程序包c302,并且需要分发名为pyopenworm的要求。问题在于该要求包括“ requirements == 0.1”。

对于所有其他要求,pip install package_name == version解决了该问题,但是pip无法找到名为“ requirements”的发行版。同样奇怪的是,发行名称只是“要求”。 pip install pyopenworm安装所需的每个发行版,但这也失败。有什么方法可以安装此'requirements == 0.1'或只是绕过错误?这与'requirements.txt'方法不同吗?

pip install pyopenworm
Collecting requirements==0.1 (from pyopenworm)
  Could not find a version that satisfies the requirement requirements==0.1 (from pyopenworm) (from versions: )
No matching distribution found for requirements==0.1 (from pyopenworm)

c302 Pha_7 parameters_C -cells ["M1","M2L","M2R","M5","I4","I5","I6"] -cellstostimulate ["M1","M5","I4","I5","I6"]
Traceback (most recent call last):
  File "/home/hjchang/anaconda2/bin/c302", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/home/hjchang/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3241, in <module>
    @_call_aside
  File "/home/hjchang/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3225, in _call_aside
    f(*args, **kwargs)
  File "/home/hjchang/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3254, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/home/hjchang/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/home/hjchang/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/home/hjchang/anaconda2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'requirements==0.1' distribution was not found and is required by pyopenworm

0 个答案:

没有答案