Mac上今天正常升级pip3 install --upgrade pip
之后,运行pip3 --version
后出现问题,如下
~ pip3 -version
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/usr/bin/pip3", line 10, in <module>
sys.exit(main())
TypeError: 'module' object is not callable
正好stackoverflow上查到这个问题
https://stackoverflow.com/questions/58386953/pip3-typeerror-module-object-is-not-callable-after-update
解决方案如下
执行 python3 -m pip uninstall pip
即可