How to Install PIP on Windows
The following instructions should work on Windows 7, Windows 8.1, and Windows 10:
- Download the get-pip.py installer script. If you’re on Python 3.2, you’ll need this version of get-pip.py instead. Either way, right-click on the link and select Save As…and save it to any safe location, such as your Downloads folder.
- Open the Command Prompt and navigate to the get-pip.py file.
- Run the following command: python get-pip.py
How to Install PIP on Mac
Modern Mac systems come with Python and PIP already installed. However, this version of Python tends to be outdated and not the best choice for serious Python development, so it’s highly recommended that you install a more current version of Python and PIP.
If you want to use the native system Python installation but don’t have PIP available, you can install PIP with the following command in Terminal:
sudo easy_install pip
If you’d rather install a more up-to-date version of Python, then you can use Homebrew. Don’t know what that is? Learn more about installing software with Homebrew on Mac. The following instructions assume you already have Homebrew installed and ready to go.
How to Install Mac Apps in Terminal Using HomebrewDid you know you can install Mac software in the Terminal? Here's how to use Homebrew to install Mac apps easily.READ MOREInstalling Python with Homebrew involves a single command:
brew install python
This will install the latest version of Python, which should come packaged with PIP. If the installation is successful but PIP is unavailable, you may need to re-link Python using the following Terminal command:
brew unlink python && brew link python
How to Install PIP on Linux
If your Linux distro came with Python already installed, you should be able to install PIP using your system’s package manager. This is preferable since system-installed versions of Python do not play nicely with the get-pip.py script used on Windows and Mac.
Advanced Package Tool (Python 2.x)
sudo apt-get install python-pip
Advanced Package Tool (Python 3.x)
sudo apt-get install python3-pip
pacman Package Manager (Python 2.x)
sudo pacman -S python2-pip
pacman Package Manager (Python 3.x)
sudo pacman -S python-pip
Yum Package Manager (Python 2.x)
sudo yum upgrade python-setuptools
sudo yum install python-pip python-wheel
Yum Package Manager (Python 3.x)
sudo yum install python3 python3-wheel
Dandified Yum (Python 2.x)
sudo dnf upgrade python-setuptools
sudo dnf install python-pip python-wheel
Dandified Yum (Python 3.x)
sudo dnf install python3 python3-wheel
Zypper Package Manager (Python 2.x)
sudo zypper install python-pip python-setuptools python-wheel
Zypper Package Manager (Python 3.x)
sudo zypper install python3-pip python3-setuptools python3-wheel
Find below the steps to install pip on Python 2.6.X:
$ curl https://bootstrap.pypa.io/2.6/get-pip.py -o get-pip.py
$ python get-pip.py
'Development > Python' 카테고리의 다른 글
03. 시작 페이지 단위 테스트 (0) | 2019.07.28 |
---|---|
02. unittest 모듈과 기능 테스트 (0) | 2019.07.28 |
01. Django 그리고 기능 테스트 (0) | 2019.07.28 |
00. 준비하기 (0) | 2019.07.28 |
Python 2.x 한글 인코딩 관련 정리 (0) | 2019.07.28 |