pip3 error - '_NamespacePath' object has no attribute 'sort'

后端 未结 16 1575
生来不讨喜
生来不讨喜 2020-12-07 18:39

I tried to install a package through pip3, and I got this error. Every pip/pip3 command that I run gives me this error-

alexg@hitbox:~$ pip3 -V
Traceback (m         


        
16条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 19:33

    I had this same problem, and was unable to run any command with pip3 (including any commands like pip3 install --upgrade pip setuptools).

    Only fix I've found was to completely uninstall and re-install python 3 (sudo apt-get remove python3, sudo apt-get install python3, sudo apt install python3-pip) and now pip3 is working properly again.

提交回复
热议问题