Home >Backend Development >Python Tutorial >How to uninstall third-party libraries in Python

How to uninstall third-party libraries in Python

尚
Original
2019-07-06 09:23:3212095browse

How to uninstall third-party libraries in Python

Sometimes when we use python, we want to delete the installed third-party library. How to delete it? Let me share the method below

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

How to uninstall third-party libraries in Python

After pressing the Enter key in the second step, you can see that the To delete which files in the numpy library, enter y for yes and n for no, as shown in the figure below:

How to uninstall third-party libraries in Python

In the third step, we enter y and press the Enter key. After confirming the deletion of the library, you can see that the third-party library numpy has been deleted, as shown in the following figure:

How to uninstall third-party libraries in Python

In the fourth step, we can enter the "pip list" command to check whether If there is numpy, you can see if it has been deleted, as shown in the following figure:

How to uninstall third-party libraries in Python

The fifth step should be noted that if you cannot use the pip command to delete it, 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 uninstall third-party libraries in Python

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

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

Related articles

See more