How to use python's pip

(*-*)浩
Release: 2019-07-09 10:29:54
Original
4493 people have browsed it

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
Copy after login

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
Copy after login

Actual example:

$ pip install requests
Copy after login

Uninstall the installation package

$ pip uninstall SomePackage
Copy after login

4) View the list of installed packages

$ pip list
Copy after login

5) Find the packages that need to be updated

$ pip list --outdated
Copy after login

6) Update the software package

$ pip install --upgrade SomePackage
Copy after login

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
Copy after login

8) Search software Package

$ pip search "query"
Copy after login

For more Python-related technical articles, please visit thePython Tutorialcolumn 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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!