pip install --upgrade sqlalchemy给出最大的递归深度 [英] pip install --upgrade sqlalchemy gives maximum recursion depth exceeded

查看:116
本文介绍了pip install --upgrade sqlalchemy给出最大的递归深度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了pip install --upgrade sqlalchemypython2.7 setup.py install,并且删除了站点软件包中的sqlalchemy文件夹之后,我尝试了pip install sqlalchemy.它们都给出"RuntimeError:最大递归深度超出cmp".

I've tried pip install --upgrade sqlalchemy, python2.7 setup.py install, and after deleting the sqlalchemy folder in site-packages, I've tried pip install sqlalchemy. They all give "RuntimeError: maximum recursion depth exceeded in 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中添加一行以将最大递归设置为10000,并且python崩溃.

I have also tried to run the setup.py for v0.9 and get the same result. Tried adding a line to setup.py to set max recursion to 10000 and python crashes.

追溯是对此的长期重复:

The traceback is a long repetition of this:

 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}

推荐答案

好像我的"distribute"(v0.6xxx)已过时. 我跑了

Looks like my "distribute" (v0.6xxx) was out of date. I ran

pip install --upgrade distribute 

它安装了0.7.3.

然后运行pip install sqlalchemy并安装.

在安装其他软件包时遇到了相同的问题.

Same problem encountered installing other packages.

这篇关于pip install --upgrade sqlalchemy给出最大的递归深度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆