How to install pip on Ubuntu

Install pip and virtualenv for Ubuntu 10.10 Maverick and newer

1
2
3
$ sudo apt-get install python-pip python-dev build-essential 
$ sudo pip install --upgrade pip
$ sudo pip install --upgrade virtualenv

For older versions of Ubuntu

1
2
3
4
5
6
Install Easy Install
$ sudo apt-get install python-setuptools python-dev build-essential
Install pip
$ sudo easy_install pip
Install virtualenv
$ sudo pip install --upgrade virtualenv

坚持原创技术分享,您的支持将鼓励我继续创作!