Error after upgrading pip: cannot import name 'main'

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

    As @cryptoboy said - check what pip/python version you have installed

     demon@UbuntuHP:~$ pip -V
     demon@UbuntuHP:~$ pip2 -V
     demon@UbuntuHP:~$ pip3 -V
    

    and then check for no-needed libraries in your .local/lib/ folder.

    I did backup of settings when I was migrating to newer Kubuntu and in had .local/lib/python2.7/ folder in my home directory. Installed python 3.6. I just removed the old folder and now everything works great!

提交回复
热议问题