Windows
Easy_install
Download: https://pypi.python.org/pypi/setuptools
python ez_setup.py
pip
Download: http://pip.readthedocs.org/en/latest/installing.html
python get-pip.py
You can see that ez_install and pip are completely installed at C:\Python32\Scripts.
Ubuntu
Install pip:
$ sudo apt-get install python-pip python-dev build-essential $ sudo pip install --upgrade pip $ sudo pip install --upgrade virtualenv
Install pip for Python3:
$ sudo apt-get install python3-pip $ sudo pip2 install MODULE_NAME $ sudo pip3 install MODULE_NAME
만약 pip3로 설치를 진행하려다 'ImportError: cannot import name IncompleteRead' 에러가 발생한다면 pip를 최신 버전으로 업그레이드 해주면 된다. 버전 차이로 인한 문제이다.
$ easy_install -U pip
For older versions of Ubuntu:
Install EasyInstall:
$ sudo apt-get install python-setuptools python-dev build-essential
Install pip:
$ sudo easy_install pip
Install virtualenv:
$ sudo pip install --upgrade virtualenv
References
- How to install pip on Ubuntu
- How to install python3 version of package via pip on Ubuntu?
- How do I fix 'ImportError: cannot import name IncompleteRead'?