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

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

    I'm using virtualenv and upgrading setuptools didn't work for me. What did work was this workaround:

    pip uninstall setuptools -y && pip install setuptools
    

提交回复
热议问题