pip install --upgrade sqlalchemy超出了最大递归深度

时间:2015-07-07 15:43:38

标签: python python-2.7 recursion sqlalchemy pip

我已经尝试了pip install --upgrade sqlalchemypython2.7 setup.py install,在删除了网站套餐中的sqlalchemy文件夹之后,我尝试了pip install sqlalchemy。它们都给出了#34; RuntimeError:cmp"中超出了最大递归深度。

  File "C:\Python27\lib\ntpath.py", line 200, in splitext
return genericpath._splitext(p, sep, altsep, extsep)
  File "C:\Python27\lib\genericpath.py", line 102, in _splitext
    sepIndex = max(sepIndex, altsepIndex)
RuntimeError: maximum recursion depth exceeded in cmp

我还尝试为v0.9运行setup.py并获得相同的结果。 尝试在setup.py中添加一行,将max recursion设置为10000并且python崩溃。

编辑:回溯是一个很长的重复:

 File "c:\python27\lib\site-packages\distribute-0.6.28-py2.7.egg\setuptools\dist.py", line 225, in __init__
    _Distribution.__init__(self,attrs)
  File "c:\python27\lib\distutils\dist.py", line 287, in __init__
    self.finalize_options()
  File "c:\python27\lib\site-packages\distribute-0.6.28-py2.7.egg\setuptools\dist.py", line 257, in finalize_options
    ep.require(installer=self.fetch_build_egg)
  File "c:\python27\lib\site-packages\distribute-0.6.28-py2.7.egg\pkg_resources.py", line 2029, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer))
  File "c:\python27\lib\site-packages\distribute-0.6.28-py2.7.egg\pkg_resources.py", line 580, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
  File "c:\python27\lib\site-packages\distribute-0.6.28-py2.7.egg\pkg_resources.py", line 825, in best_match
    return self.obtain(req, installer) # try and download/install
  File "c:\python27\lib\site-packages\distribute-0.6.28-py2.7.egg\pkg_resources.py", line 837, in obtain
    return installer(requirement)
  File "c:\python27\lib\site-packages\distribute-0.6.28-py2.7.egg\setuptools\dist.py", line 272, in fetch_build_egg
    dist = self.__class__({'script_args':['easy_install']})
{repeat until max recursion}

1 个答案:

答案 0 :(得分:12)

看起来像我的"分发" (v0.6xxx)已过期。 我跑了

pip install --upgrade distribute 

并安装了0.7.3。

然后运行pip install sqlalchemy并安装它。

安装其他软件包遇到同样的问题。