반응형
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.
반응형
'【👨💻 Programming 】 > 🐍 Python' 카테고리의 다른 글
Python 메인함수 - if __name__ == "__main__" 의미 (0) | 2022.01.27 |
---|---|
[Windows] Python 개발환경 with Anaconda (0) | 2022.01.17 |
Proxy환경하에서 pip (0) | 2016.12.23 |
[Windows] Unofficial Windows Binaries for Python Extension Packages (0) | 2016.12.19 |
[Windows] Unable to find vcvarsall.bat (0) | 2016.12.19 |