Summary of installation and uninstallation methods for various packages such as djangoweb. pygearman installed in python

Source: Internet
Author: User

Summary of installation and uninstallation methods for various packages such as djangoweb. pygearman installed in python

Python can use easy_install to install various packages or use easy_install-m package-name to uninstall the packages. However, the installation version cannot be controlled.

You can decompress the package and enter python setup. py install in the root directory to install various packages by using the source code. However, if you uninstall the package, it doesn't matter. How to uninstall the source code Installation Network upload

Python setup. py install -- record log
Cat log | xagrs rm-rf

In my personal experience, most python packages can be installed without installation. directly put the source code folder of this package under your own source code directory. (This method is not suitable for importing the content of this package from the source code of Multiple folders .)

The command to uninstall is also simple: easy_install-m package-name
But what should I do when installing the source code?

Setup. py helps you record installation details for ease of uninstallation
Python setup. py install -- record log
All the installation details are written into the log.
When you want to uninstall
Cat log | xagrs rm-rf
You can clean and uninstall it.

Related Article

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.