我有一个问题。我正在虚拟环境中的 Ubuntu / Python 2.7 上安装金字塔应用程序。我正在运行 setup.py 作为
../bin/python2.7 setup.py develop
从根项目目录及之后:
Traceback (most recent call last):
File "setup.py", line 48, in <module>
""",
File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/local/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/local/lib/python2.7/site-packages/setuptools/dist.py", line 301, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/local/lib/python2.7/site-packages/pkg_resources.py", line 2272, in require
working_set.resolve(self.dist.requires(self.extras),env,installer)))
File "/local/lib/python2.7/site-packages/pkg_resources.py", line 2489, in requires
dm = self._dep_map
File "/local/lib/python2.7/site-packages/pkg_resources.py", line 2543, in __getattr__
raise AttributeError(attr)
AttributeError: _dep_map
你怎么看?可能你看到了这个错误并且知道如何修复它?