Ubuntu 如何安装pip

来源:互联网 发布:smtp.126.com 端口号 编辑:程序博客网 时间:2024/05/19 03:19

Pip is a better alternative to Easy Install for installing Python packages. It is most "nutritious" when used with its companion virtualenv. For more information on pip and virtualenv see my blog post: Notes on using pip and virtualenv with Django.

Install pip and virtualenv for Ubuntu 10.10 Maverick and newer

$ 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

  • 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 
0 0
原创粉丝点击