Error after upgrading pip: cannot import name 'main'

后端 未结 30 1742
清歌不尽
清歌不尽 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:21

    The commands above didn't work for me but those were very helpful:

    sudo apt purge python3-pip
    sudo rm -rf '/usr/lib/python3/dist-packages/pip'  
    sudo apt install python3-pip
    cd
    cd .local/lib/python3/site-packages
    sudo rm -rf pip*  
    cd
    cd .local/lib/python3.5/site-packages
    sudo rm -rf pip*  
    sudo pip3 install jupyter
    

提交回复
热议问题