Home >Backend Development >Python Tutorial >How to use pip tool in python

How to use pip tool in python

尚
Original
2019-07-02 14:04:097226browse

How to use pip tool in python

After installing python (my python version is 32-bit, version number 2.7.10), if you need to install some other libraries, there are generally two ways, one is to do it manually Go to the official website of each library to download and install it yourself; another method is to install pip. Using pip can easily install various python libraries.

The following is a brief introduction to the use of the pip tool:

1. To install a python library, just use pip install package_name. For example, pip install matplotlib

2. To check which libraries are installed in Python, you can use pip list. The result will be similar to the figure below

How to use pip tool in python

4. To delete a certain For an installed library, you can use the pip uninstall package_name command.

5. To display detailed information about a library, you can use the pip show package_name command. For example, pip show PIL, the result is as shown below

How to use pip tool in python

6, which shows which of the installed libraries need to be upgraded. You can use pip list –outdated, which is displayed as follows:

How to use pip tool in python

#7. To upgrade an installed package, use pip install --upgrade package_name, for example, pip install --upgrade numpy

Basic command explanation, as shown below:

How to use pip tool in python

For more Python related technical articles, please visit the Python Tutorial column to learn!

The above is the detailed content of How to use pip tool in python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn