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:
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:
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:
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:
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:
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!