Home >Backend Development >Python Tutorial >How to use python's pip

How to use python's pip

(*-*)浩
(*-*)浩Original
2019-07-01 14:27:124644browse

pip is a Python package management tool, mainly used to install software packages on PyPI, which can replace the easy_install tool.

How to use python's pip

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is python full stackNext article:What is python full stack