Use and installation of PIP in Python

Source: Internet
Author: User
Tags virtualenv

How to install Pip under Ubuntu

How to install PIP:
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

Install MySQL expansion pack to: sudo pip install Mysql-python
It is convenient to install the other packages just by the PIP + package name. And the installed mysqlib is not a problem to use.
Under Windows, you also need to change the source file.

It's good to hit the code or under Linux.
Install MySQL
Apt-get Install Mysql-server


How to use Pip under Ubuntu

1. PIP installation command
$ sudo pip install package

2. PIP Upgrade command
$ sudo pip install-u package

3. PIP Unload command
$ sudo pip Uninstall package

Use and installation of PIP in Python

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.