-
[pip ]from pip import main ImportError: cannot import name main기록하다 2018. 9. 20. 16:31
" pip install --upgrade --user pip "
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
위와 같은 오류 해결 방법1- Uninstall the pip update from python.
2- Uninstall pip package from your Ubuntu.
3- Check that pip binary is not longer in your system.python -m pip uninstall pip apt remove python-pip whereis pip
4- Download and install pip. (credits for VanDragt.com)
wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py sudo python3 /tmp/get-pip.py pip install --user pipenv pip3 install --user pipenv echo "PATH=$HOME/.local/bin:$PATH" >> ~/.profile source ~/.profile whereis pip
'기록하다' 카테고리의 다른 글
[windows][docker] 컨테이너 / 이미지 모두 삭제 (0) 2018.10.16 [Ubuntu][docker] 개발환경설정 (0) 2018.10.12 [Ubuntu][AWS][EC2] 서버환경설정 (0) 2018.10.11 [AWS][Ubuntu] 계정 추가 & ssh 설정 (0) 2018.10.11 [작성중] 아마존 웹서비스에 서버를 만들다(AWS EC2 Service) (0) 2018.09.20