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.