Three ways to install Python third-party libraries

Method 1:
(cmd command line) pip method [main method, applicable to 99% of cases] [depends on network conditions]

Enter pip -h on the command line to view the command help information

Commonly used pip commands
① pip install <third-party library name> to install the specified third-party library
Parameter -U:update to update the version that has been installed
② pip uninstall <third-party library name> to uninstall the specified third-party
library③ pip download <third-party library Name> Download but do not install the third-party library
④ pip show <Third-party library name> List the detailed information of a specified third-party library
⑤ pip search <Keyword> Search for the third-party library in the name and introduction based on keywords to
remind us, If you construct a third-party library by yourself one day, the description information should be written in more detail so that others can find it with the pip search command
⑥ pip list can view the third-party libraries installed in the current system

Method 2:
Integrated installation method
Combined with specific python installation tools, install a batch of libraries in batch
Recommended: Anaconda-Python integrated development tool for data processing, supports only 800 (2018 data) third-party libraries, currently in the field of data computing Very good development environment

Method 3:
File installation method
After downloading some third-party libraries pip, they need to be compiled and then installed. If the operating system does not have a compilation environment, you can download but not install the
UCI page provides compiled versions of these libraries
https://www.lfd .uci.edu/~gohlke/pythonlibs/
download and install

Source: BIT Python MOOC

Guess you like

Origin blog.csdn.net/weixin_44997802/article/details/108179040
Recommended