[英]Differences between distribute, distutils, setuptools and distutils2?
[英]Read the Docs: Distutils2 error during installation
我尝试在Win10上安装读取文档的本地实例
当我遵循此文档时:
http://docs.readthedocs.io/en/latest/install.html
并输入:
pip install -r requirements.txt
我收到此错误:
Collecting Distutils2==1.0a3 (from -r requirements/pip.txt (line 65))
Using cached Distutils2-1.0a3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\USER\AppData\Local\Temp\pip-build-xseiavup\Distutils2\setup.py", line 9, in <module>
from distutils2.util import find_packages
File "C:\Users\USER\AppData\Local\Temp\pip-build-xseiavup\Distutils2\distutils2\util.py", line 174
except KeyError, var:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\USER\AppData\Local\Temp\pip-build-xseiavup\Distutils2\
有人知道这个错误吗?
我的点子版本:8.1.2;
的Python:3.5
您是否正在运行Python 2 pip
? 该错误消息清楚地表明该代码正在Python 3下执行,但具有Python 2语法。 你得到更好的结果
python -m pip install -r requirements.txt
我想知道? 如果没有,请验证
python
运行版本3.5 ...
哦。 我刚刚检查了一下,PyPI上的disutils2页面说
Distutils2开发已停止。
tl; dr:暂时继续使用setuptools和pip,请勿使用distutils2。
似乎从来没有Python 3版本。 看起来您可能需要更新代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.