Installation and use of easy_install and pip in Python

  • 2020-06-03 07:10:26
  • OfStack

Introduction to easy_install and pip:

easy_install and pip are used to download and install PyPI related resource package of Python1 common resource library. pip is an improved version of easy_install, providing better prompt information, package deletion and other functions. The old version of python contained only easy_install and no pip. easy_install packages and publishes the Python package pip is package management

The installation of easy_install

The premise is that the python environment is configured

Download address: https: / / pypi python. org/pypi/ez_setup

After downloading ES39en_setup.py to the desktop, hold down the keyboard's shift key, right click, select "Open command window here", enter the DOS interface, and enter the command: python ES45en_setup.py

The installation of pip

After installing easy_install as described above, install pip

Download address: https: / / pypi python. org/pypi/pip

Download to the desktop, unzip, then enter the directory where setup.py is stored, hold down the keyboard's shift key, right click the mouse, select "Open command window here", enter the INTERFACE of DOS, enter the command: python ES71en.py install, and start the installation.

Usage of easy_install:

Install 1 package


easy_install  The package name 
easy_install " The package name  ==  The version number of the package "

Upgrade 1 package


easy_install -U " The package name  >=  The version number of the package "

The use of the pip

Install 1 package


pip install  The package name 

pip install  The package name  ==  The version number of the package 

Upgrade 1 package (upgrade to the latest version if version is not provided)


pip install --upgrade  The package name  >=  The version number of the package 

Delete 1 package


pip uninstall  The package name 

Related articles: