카테고리 없음

[ubuntu] pip error / ssh

Hemos 2019. 11. 11. 15:32

2

 

In ubuntu 18.04.1 Bionic Beaver, you need to log out and log back in (restart not necessary) to get the proper environment.

$ sudo apt install python-pip $ pip --version pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7) $ pip install --upgrade pip $ pip --version Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name main $ exit <login> $ pip --version pip 18.1 from /home/test/.local/lib/python2.7/site-packages/pip (python 2.7)

shareimprove this answer

answered Jan 10 at 16:09

Jeff Hoye

47355 silver badges10

 

https://stackoverflow.com/questions/49836676/error-after-upgrading-pip-cannot-import-name-main

 

Error after upgrading pip: cannot import name 'main'

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 last): File "/usr/bin/pip3", line 9, i...

stackoverflow.com