# 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")
即可。

相关文章:

  • 2021-05-20
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2022-12-23
猜你喜欢
  • 2022-02-13
  • 2022-12-23
  • 2021-10-17
  • 2021-07-19
  • 2022-12-23
  • 2021-07-02
  • 2021-05-25
相关资源
相似解决方案