Home > Article > Backend Development > How to uninstall modules in python in cmd
Python is a very interesting language that can be run in the command line window. There are many powerful modules in python, but what should I do when I don’t need them and want to uninstall them?
The first step is to click win r on the keyboard to open the run window. (Recommended learning: Python video tutorial)
The second step is to enter "cmd" in the window and click OK to open the windows command line window.
The third step is to uninstall the xxx module by entering "pip uninstall xxx" in the windows command line window. xxx is the module name.
For example, the following picture:
The fourth step, the command line window asks whether to uninstall the xxx module, Enter "y" to confirm that you are sure to uninstall the xxx module.
The fifth step, in the command line window, enter "pip list" to check the modules installed by python. If there is no xxx module, the uninstallation is successful.
For more Python-related technical articles, please visit the Python Tutorial column to learn!
The above is the detailed content of How to uninstall modules in python in cmd. For more information, please follow other related articles on the PHP Chinese website!