Python uninstall module method summary, python uninstall Summary

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.