4

我有一个问题。我正在虚拟环境中的 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

你怎么看?可能你看到了这个错误并且知道如何修复它?

4

2 回答 2

13

在不知道您的确切 setup.py 或代码布局的情况下:您的路径中是否有一个名为parser的模块?那是你的问题。

于 2013-09-02T17:33:56.150 回答
1

我遇到了同样的问题,但是我看不到解析器模块。我不得不重新创建一个虚拟环境并安装 requirements.txt。

于 2016-01-29T01:48:15.870 回答