Linux Package management tool PIP usage explained

Source: Internet
Author: User

1. Pip Install software

[[Email protected] ~]$ pip install somepackage[...] Successfully installed Somepackage

Parameters:
--upgrade Upgrade a Package

2. Pip Show view installed software (matplotlib as an example)

[Email protected] ~]$ PIP show matplotlib---metadata-version:1.1name:matplotlibversion:1.4.3summary:python plotting Packagehome-page:http://matplotlib.orgauthor:john D. Hunter, Michael droettboomauthor-email: [Email protected] License:bsdlocation:/usr/local/lib/python3.4/site-packagesrequires:numpy, six, Python-dateutil, Pytz, pyparsing, Nose, nose

Parameters:
--files List file addresses

3. PIP List lists existing software

[[Email protected] ~]$ pip listmatplotlib (1.4.3) nose (1.3.7) numpy (1.9.2) [...] Name (Version)

Parameters:
--outdated software that needs to be updated

4. Pip Uninstall uninstalling a software

[[Email protected] ~] Pip Uninstall somepackageuninstalling somepackage:/my/env/lib/pythonx.x/site-packages/ Somepackageproceed (y/n)? ysuccessfully uninstalled Somepackage

5. Pip--help Help

[[email protected] ~] pip--helpusage:pip <command> [options]commands:install install P  Ackages.  Uninstall Uninstall packages.  Freeze Output installed packages in requirements format.  List List installed packages.  Show show information about installed packages.  Search Search PyPI for packages.  Wheel Build wheels from your requirements. Help Show Help for commands.  General Options:-H,--help Show help. --isolated Run pip in an isolated mode, ignoring environment variables and u  Ser configuration. -V,--verbose Give more output.  Option is additive, and can are used up to 3 times.  -V,--version Show version and exit.  -Q,--quiet Give less output. --log &LT;PATH&GT  Path to a verbose appending log. --proxy <proxy> Specify a proxy in the form [USER:[EMAIL&NBSP;PROTECTED]]PR  Oxy.server:port. --retries <retries> Maximum Number of retries each connection should attempt (d  Efault 5 times).  --timeout <sec> Set The socket timeout (default seconds). --exists-action <action> Default Action when a path already exists: (s) witch, (i) Gno  Re, (W) Ipe, (b) ackup. --trusted-host 

Reference: Pip installation steps and usage in Linux

Linux Package management tool PIP usage explained

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.