Details about the installation update and uninstall of pip module and how to use of

  • 2020-06-01 10:13:53
  • OfStack

During the learning process of Python, I am sure I will encounter many places to install modules. You can use easy_install to install them. However, compared with pip, the biggest defect of easy_install is that the modules it installs cannot be uninstalled, and other functions are the same as pip1.

The installation of pip is described below:

Installation I've summarized two methods 1 to install by downloading the installation file 2 to install by easy_install

1 download pip installation package https: / / pypi python. org pypi/pip # downloads

1) the web page provides two installation packages, one for.whl and the other for.whl. You can download pip-7.1.0.tar.gz (md5, pgp) and then unzip the package into the folder \ pip-7.1.0 \ pip-7.1.0

2) then use the console to write to the command line for installation. Use the console to enter the folder path, where you can use the path folder in the blank, hold down the Shift key, right-click and select "open command window here" to open the console as the folder path.

3) install pip using the python setup.py install command. You can view the pip file you installed in D:\Python27\ site-packages. D:\Python27 is the installation path of my python. (note 1, python setup.py install is enabled because the setuptools tool is automatically installed when python is installed (the path is D:\Python27\Lib\ setuptools-0.6 \ c11-py2.7.egg-info))

4) you can test whether the module is installed successfully in python's IDLE. Write: import BeatifulSoup if the error indicates that the installation did not succeed.

pip update module:

1) use the console command to enter the pip installation path: D:\Python27\Lib\ site-packages

2) use the update command line: pip install-U PackageName

pip uninstall module:

1) use the console command to enter the pip installation path: D:\Python27\Lib\ site-packages

2) use the update command line: pip uninstall PackageName


Related articles: