Home  >  Article  >  Backend Development  >  How to delete third-party libraries installed by python

How to delete third-party libraries installed by python

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-06-20 13:12:4314442browse

How to delete third-party libraries installed by python

How to delete the third-party library installed by python? Here are the specific steps:

The first step is to open the command prompt and enter " pip uninstall library name", what is deleted here is the numpy library, as shown in the following figure:

How to delete third-party libraries installed by python

Related recommendations: "python video tutorial"

In the second step, after pressing the Enter key, you can see which files in the numpy library will be deleted. Enter y for yes and n for no, as shown in the following figure:

How to delete third-party libraries installed by python

In the third step, we enter y and press Enter to confirm the deletion of the library. You can see that the third-party library numpy has been deleted, as shown in the figure below:

How to delete third-party libraries installed by python

In the fourth step, we can enter the "pip list" command to check if there is still numpy. You can see if it has been deleted, as shown in the figure below:

How to delete third-party libraries installed by python

What should be noted in the five steps is that if you cannot use the pip command to delete, you can first manually delete the library in the F:\Install\python3.7\Lib\site-packages path, and then perform the first step, as shown in the following figure:

How to delete third-party libraries installed by python

The above is the detailed content of How to delete third-party libraries installed by 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