Home >Backend Development >Python Tutorial >How to use python's pip
pip is a Python package management tool, mainly used to install software packages on PyPI, which can replace the easy_install tool.
Some uses of pip (recommended learning: Python video tutorial)
1) Self-update of pip
$ pip install -U pip
2) Install PyPI software package
$ pip install SomePackage # latest version $ pip install SomePackage==1.0.4 # specific version $ pip install 'SomePackage>=1.0.4' # minimum version
Actual example:
$ pip install requests
Uninstall the installation package
$ pip uninstall SomePackage
4) View the list of installed packages
$ pip list
5) Find the packages that need to be updated
$ pip list --outdated
6) Update the software package
$ pip install --upgrade SomePackage
7) View the detailed information of the software package
$ pip show sphinx --- Name: Sphinx Version: 1.1.3 Location: /my/env/lib/pythonx.x/site-packages Requires: Pygments, Jinja2, docutils
8) Search software Package
$ pip search "query"
For more Python-related technical articles, please visit the Python Tutorial column to learn!
The above is the detailed content of How to use python's pip. For more information, please follow other related articles on the PHP Chinese website!