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

后端 未结 10 1073
执笔经年
执笔经年 2020-12-07 21:41

system

  • centos 7.2
  • Python 2.7.5

install

I install webhook

pip install webhook
### but hava error,then
yum in         


        
相关标签:
10条回答
  • 2020-12-07 22:08

    None of the other uninstall/reinstall/force answers worked for me, but on OS X 10.10.5 with the system Python 2.7.10, I was able to do:

    pip uninstall packaging pip
    easy_install pip # this installed pip 1.4.1
    pip install --upgrade pip # and this upgraded to the current pip
    

    and I was then able to import pkg_resources without a problem.

    Should really learn to stop messing with the system Python…

    0 讨论(0)
  • 2020-12-07 22:16

    I applied the fix

    pip install setuptools==33.1.1

    and it solved the problem for OSX 10.10.5 (Yosemite)

    0 讨论(0)
  • 2020-12-07 22:17

    I had the same problem on a fresh virtualenv and apparently this is a conflict between the version requirements for packaging, pip and pyparsing with the new setuptools. What worked for me was to pin down the old one.

    pip install setuptools==33.1.1
    

    Update:

    As another answer pointed out, pip has already fixed the bug, so you should try upgrading it instead of using the workaround above.

    python -m pip install --upgrade --force pip 
    
    0 讨论(0)
  • 2020-12-07 22:17

    this is work well:

    python -m pip install --upgrade --force pip 
    pip install setuptools==33.1.1
    
    0 讨论(0)
提交回复
热议问题