Python uninstall module method summary, python uninstall Summary
Easy_install uninstall
The modules installed through easy_install can be uninstalled directly through easy_install-m PackageName, and then the egg under the \ Python27 \ Lib \ site-packages directory can be deleted.
Setup. py uninstall
The uninstall option provided by setup. py is preferred. If the author does not provide the uninstall option, manually uninstall it using the following command line:
First, obtain the files generated during the installation process:
Python setup. py install -- record record.txt
Then kill them:
FOR/F "delims =" % f in (record.txt) DO del "% f"
Then you can go to \ Python27 \ Lib \ site-packages to check whether there are any empty directories.
Use pip
Install pip
$ Wget https://bootstrap.pypa.io/get-pip.py$ python get-pip.py
Deletes a specified module or package.
Pip uninstall xxx
I think we should try to install it with easy_install, which is easier to uninstall.