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

后端 未结 10 1075
执笔经年
执笔经年 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…

提交回复
热议问题