반응형
Installing pip for Python 2
Pip for Python 2 is not included in the Ubuntu 20.04 repositories. We’ll be installing pip for Python 2 using the get-pip.py script.
Start by enabling the universe repository:
$ sudo add-apt-repository universe
Update the packages index and install Python 2:
$ sudo apt update
$ sudo apt install python2
Use curl to download the get-pip.py script:
$ curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
Once the repository is enabled, run the script as sudo user with python2 to install pip for Python 2:
$ sudo python2 get-pip.py
Pip will be installed globally. If you want to install it only for your user, run the command without sudo. The script will also install setuptools and wheel, which allow you to install source distributions.
반응형
'【Fundamental Tech】 > Ubuntu' 카테고리의 다른 글
부팅시 스크립트 자동 실행시키기(rc.local) (0) | 2022.07.30 |
---|---|
APT repository 제거 (0) | 2020.10.17 |
[Ubuntu 16.04] Scrapy 설치 (without virtualenv) (0) | 2016.12.19 |
ubuntu 시작시 자동으로 스크립트 실행 (0) | 2012.10.28 |
dos2unix - ^M 문자 변환 (0) | 2011.10.07 |