Installation, update, and uninstallation of pip modules and usage (detailed description) and pip Module
In the course of Python learning, you will certainly encounter many installation modules, you can use easy_install to install, but easy_install is relative to pip, the biggest drawback is that the modules installed by pip cannot be detached. Other functions are the same as those of pip.
The following describes how to install pip:
I have summarized two methods for installation. 1. Download the installation file to install it. 2. Install it through easy_install.
1 download pip package https://pypi.python.org/pypi/pip#downloads
1) The webpage provides two installation packages: md5 (pgp) of. whl, and decompress the package to enter \ pip-7.1.0 \ pip-7.1.0 in the folder.
2) then use the console to write the command line for installation. Use the console to enter the folder path. Here, you can go to the blank space in the path folder and press Shift to right-click and choose "Open command window here" to open the console as the folder path.
3) Use python setup. run the py install command to install pip. In Path D: \ Python27 \ Lib \ site-packages, you can view the pip file you have installed. Here, D: \ Python27 is the installation path of my python. (The reason for using python setup is as follows. py install is because the setuptools tool is installed automatically when python is installed (Path: D: \ Python27 \ Lib \ site-packages \ setuptools-0.6c11-py2.7.egg-info ))
4) You can test whether the module is successfully installed in the python IDLE. Write: import BeatifulSoup. If an error is prompted, the installation is not successful.
Pip update module:
1) run the console command to go To the pip installation path: D: \ Python27 \ Lib \ site-packages
2) use the update command line pip install-U PackageName
Pip uninstall module:
1) run the console command to go To the pip installation path: D: \ Python27 \ Lib \ site-packages
2) use the update command line pip uninstall PackageName
The above article on pip installation, update, uninstallation module and usage (detailed description) is a small part of the content to share with you, I hope to give you a reference, we also hope that you can support the customer's home.