# python setup.py install
Traceback (most recent call last):
File "setup.py", line 11, in <module>
import setuptools
File "/home/zhangsan/setuptools-34.4.1/setuptools/__init__.py", line 12, in <module>
import setuptools.version
File "/home/zhangsan/setuptools-34.4.1/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/home/zhangsan/setuptools-34.4.1/pkg_resources/__init__.py", line 72, in <module>
import packaging.requirements
File "/usr/local/lib/python2.7/site-packages/packaging/requirements.py", line 59, in <module>
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: __call__() takes exactly 2 arguments (1 given)
对于这个错误,只需要提示找到requirements.py的59行,将
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
改成:
MARKER_EXPR = originalTextFor(MARKER_EXPR)("marker")
即可。
转载于:https://www.cnblogs.com/aquester/p/9891507.html