pip is error,TypeError: __call__() takes exactly 2 arguments (1 given)

  发布时间:   文章分类:Python 浏览数: 15175

python 更新包版本时出现 pip is error,TypeError: __call__() takes exactly 2 arguments (1 given) 错误

  1. [root@location src]# pip
  2. Traceback (most recent call last):
  3. File "/usr/bin/pip", line 5, in <module>
  4. from pkg_resources import load_entry_point
  5. File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 72, in <module>
  6. import packaging.requirements
  7. File "/usr/lib/python2.7/site-packages/packaging/requirements.py", line 59, in <module>
  8. MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
  9. TypeError: __call__() takes exactly 2 arguments (1 given)

解决方法:

  1. python -m pip install --upgrade --force pip
  2. pip install setuptools==33.1.1

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 Coder·码农网

码农可能感兴趣的文章:

本文永久链接:www.codercto.com/a/27.html

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。

相关码农书籍:
Invent Your Own Computer Games with Python, 2nd Edition

Invent Your Own Computer Games with Python, 2nd Edition

Albert Sweigart / Albert\Sweigart / May 1, 2010 / $ 28.26

“Invent Your Own Computer Games with Python” teaches you computer programming ...

相关码农工具:
JS 压缩/解压工具

JS 压缩/解压工具

在线压缩/解压 JS 代码

html转js在线工具

html转js在线工具

html转js在线工具

RGB CMYK 转换工具

RGB CMYK 转换工具

RGB CMYK 互转工具