기술 성공, 실패 기록소

ubuntu 16.04 pip upgrade 본문

linux 및 기타 os

ubuntu 16.04 pip upgrade

sunlab 2021. 7. 23. 13:59
728x90

https://tablefi.tistory.com/128

 

[Ubuntu 16.04~] pip upgrade 후 에러 해결 (ImportError: cannot import name 'main' )

sudo apt install python-pip pip install --upgrade pip 위와 같이 apt에서 설치한 pip(9.x 버전) 를 그대로 업데이트할 경우 다음과 같은 에러를 뿜는다 ImportError: cannot import name 'main' apt로 설치한..

tablefi.tistory.com

 

curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python2 get-pip.py

 

errer occur when we try to upgrade pip by apt-get

so don't use apt-get, use uppper method instead