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

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

    Yet another answer, but following is the one which eventually fixed the issue for me. Since pip was compromised I was unable to use it for upgrading itself or setuptools and also using easy_install was bringing up the same issue. So I tried to install pip using Python.

    The answer:

    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    python get-pip.py 
    pip install --upgrade setuptools
    

提交回复
热议问题