How to uninstall third-party libraries in Python

Release: 2019-07-06 09:23:32
Original
12061 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template