Home  >  Article  >  Backend Development  >  How to uninstall modules in python in cmd

How to uninstall modules in python in cmd

(*-*)浩
(*-*)浩Original
2019-06-29 13:06:348039browse

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?

How to uninstall modules in python in cmd

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:

How to uninstall modules in python in cmdThe 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!

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