Common pip python command

Common pip command

In the latest version comes with python in the pip, easy to install third-party libraries, unloading and other management, it can be used directly.

pip on the command prompt, the format pip <command> [options], direct input pip can view all the transport parameters to use.

1. Install the tripartite libraries, such as pip install numpy, the format pip install the library name (= version number, you can install the specified version)

2. Delete-party libraries, such as pip uninstall numpy, the format pip uninstall library name

3. Check the library and installed version, PIP List

4.pip upgrade, PIP PIP install --upgrade or python -m pip install --upgrade pip

 

ps:

Library packages or wheels (whl) If the online installation fails, will need to be downloaded to the local, and then install.

Package: cd into the folder where setup.py bag, execute python setup.py install

Wheels: file cd into the folder where .whl, execution pip install xxx.whl

 

Guess you like

Origin www.cnblogs.com/phoenixtien/p/12306957.html