Python pip common Commands __python

Source: Internet
Author: User
When using Python, often use the tool of the PIP, it is convenient to install a dependent library on the line, of course, there are many parameters of PIP can help us to query some library information, here is not to say the PIP installed, or provide the next train of thought, in the installation of Python, You can install the PIP directly by downloading the installation package with Pip, without the PIP, or you can install it manually by downloading the installation package. Manual installation is still a must, after all, sometimes the download timeout, or installation failure can be used. Command: setup.py install of the Python library

1. View Pip(1) Directly in the cmd window to enter the PIP command, will display all the parameters of the Pip use method; (2) Enter PIP hint did not provide a command, there are two possibilities, the first is not to configure the environment variables, the second is the other applications also exist PIP environment variables
2.where PipThis command is not a PIP command ah, this command is mainly if the previous step, the environment variable configuration is no problem, is the second, this time you can use where Pip to query the above figure can be seen, there are three Pip, so the direct input PIP system is not recognized is one of them. How to solve it quickly. Enter the Pip.exe, of course, you can go to the Pip.exe path, input pip also line
3.pip versionYou can view the version with Pip-v, which is uppercase V:
Pip version Upgrade command: Pip install--upgrade pip Upgrade command is not used, generally if the python comes with the version of the PIP, may be relatively low, the use of the PIP to install a Third-party library will be an error, but the end of the error will give this upgrade command, or more intimate.
4.PIP ListView the Third-party libraries that have been installed
Pip list--outdated: You can view a new version of a Third-party library that displays the version you are installing and the latest version

5.pip Install third Party library
Command: Pip Install library name
The PIP installation pulls the latest version of the installation, and if you want to install any version, you can add the version number command: Pip Install library name = version number
6. View InstallationTo view the details of the installation Library, command: PIP Show Library name
7. Uninstall the third party libraryCommand: Pip Uninstall library name
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.