Installation and use of Python Package manager pip

Source: Internet
Author: User

Origin

This period of time busy for friends, busy for a long time, wood has been blogging for a long time. Did two things between, one is the mail automatic sending script, one is the data processing software. Among them, when doing data processing software used to the non-Python system library, is two third-party library, Pandas and numpy, in fact, pandas contains numpy, a beginning does not understand, and later found that the source installed NumPy after installation pandas always installed not up, Went to check the next, then the NumPy Uninstall, and then a Python package manager to do third-party package management, download this series of third-party package. Unfortunately, now there is just time, right here also to introduce you to this package manager.

Pip is currently the most popular Python package management tool and is used as a substitute for easy_install, but there is still a lot of functionality built on Setuptools.

Installation

Official website Installation Introduction: https://pip.pypa.io/en/latest/installing/

Introduction of the official website is very detailed, my side again to use the old version of the way to install a bit ~

I am here to describe the installation of Python Pip under CentOS, in order to maintain the universality of the platform, I use the source code to install PIP.

CD to the directory where you want to download the PIP, personal suggestions


# CD  /USR/LOCAL/SRC


#wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz


# TAR-XZVF pip-1.5.4.tar.gz# cd pip-1.5.4# python setup.py install

How do I install it? I'm also a person who is easy to figure out

Use the following command in CentOS to install


#python-m pip install--upgrade pip

Or


#yum Install Python-pip

Yes, see what you like.

Use

Pip installs a third-party package


# pip Install Somepackage

List installed Packages


# PIP List

View the installed package details


# pip Show--files somepackage

PIP Upgrade Package


# pip Install--upgrade somepackage

PIP Offload Package


Pip Uninstall Somepackage

OK, so far, Python's Package manager Pip is finished, indeed, very short, but, very useful ha ~

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.