Home > Article > Backend Development > 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
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
6, which shows which of the installed libraries need to be upgraded. You can use pip list –outdated, which is displayed as follows:
#7. To upgrade an installed package, use pip install --upgrade package_name, for example, pip install --upgrade numpy
Basic command explanation, as shown below:
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!