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

后端 未结 16 1404
生来不讨喜
生来不讨喜 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:21

    I fixed this with follows:

    $curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    

    For python2:

    $python get-pip.py
    

    For python3:

    $python3 get-pip.py
    

    Now it works for me.

提交回复
热议问题