Installation, update, and uninstallation of pip modules and usage (detailed description) and pip Module

Source: Internet
Author: User

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.

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.