Error after upgrading pip: cannot import name 'main'

后端 未结 30 2125
清歌不尽
清歌不尽 2020-11-22 15:51

Whenever I am trying to install any package using pip, I am getting this import error:

guru@guru-notebook:~$ pip3 install numpy
Traceback (most recent call l         


        
30条回答
  •  天命终不由人
    2020-11-22 16:24

    Same thing happened to me on Pixelbook using the new LXC (strech). This solution is very similar to the accepted one, with one subtle difference, whiched fixed pip3 for me.

    sudo python3 -m pip install --upgrade pip
    

    That bumped the version, and now it works as expected.

    I found it here ... Python.org: Ensure pip is up-to-date

提交回复
热议问题