python setup.py install 出现了 RuntimeError: maximum recursion depth exceeded in cmp

Processing setuptools-34.3.3.zip
Writing /tmp/easy_install-1u8rIK/setuptools-34.3.3/setup.cfg
Running setuptools-34.3.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-1u8rIK/setuptools-34.3.3/egg-dist-tmp-F6eLAo
Traceback (most recent call last):
  File "setup.py", line 51, in
    include_package_data = True,
  File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)

  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command



  File "/usr/lib64/python2.7/re.py", line 229, in _compile
    p = _cache.get(cachekey)
RuntimeError: maximum recursion depth exceeded in cmp




原因:setuptool 版本过旧

解决方案:pip install setuptools==34.3.3

你可能感兴趣的:(Python)