Home  >  Article  >  Backend Development  >  How to check which libraries are installed in python

How to check which libraries are installed in python

尚
Original
2019-06-26 11:19:4639009browse

How to check which libraries are installed in python

Sometimes when we use python, we want to know which third-party libraries we have installed and the versions of the third-party libraries. Let’s share the method

Method 1: View through commands

The first step is to open the command prompt on our computer and enter "pip list", as shown below:

How to check which libraries are installed in python

In the second step, you can see all installed third-party libraries and version numbers, as shown below:

How to check which libraries are installed in python

Method 2: Check the third-party library installation location

The first step is to install python Under the path F:\Install\python3.7\Lib, click site-packages, as shown below:

How to check which libraries are installed in python

After entering in the second step, you can see all the third-party libraries installed, as shown in the figure below:

How to check which libraries are installed in python

Update For many Python related technical articles, please visit the Python Tutorial column to learn!

The above is the detailed content of How to check which libraries are installed in python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn