Get the App
SLTechnology News&Howtos  ›  Development  › 

How python installs specified versions of third-party libraries

Shulou Source: shulou.com Published: 2022-06-01 13:04:42 10月02日 Update

This article mainly introduces the relevant knowledge of "how to install the specified version of the third-party library in python". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope this article "how to install the specified version of the third-party library in python" can help you solve the problem.

Install third-party libraries using pip

Basic installation method: using the pip install library name, you can quickly install third-party libraries, such as pip install openpyxl.

Specified version installation method: on the basis of the above, add version information to the library name, you can install the specified version of the third-party library. For example, pip install openpyxl==2.3.4.

Similarly, the update method is used in the same way:

Basic update method: use pip install-- upgrade openpyxl to update this library to the latest version.

Specify the version update method: using pip install-- upgrade openpyxl==2.3.4, you can update this library to the specified version.

This is the end of the introduction to "how to install a specified version of a third-party library in python". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Tags: Version third party method update foundation knowledge industry different practical information content practical practical article more case knowledge point article information information channel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Redmi Shulou Information OPPO Reno vpn