PIP: Powerful Python package management tool __python

Source: Internet
Author: User

PIP: Powerful Python package management tool (A tool for installing and managing Python packages.) Project Page:https://github.com/pypa/pip

installation package (Install a package):

$ pip Install somepackage==1.0
  [...]
  Successfully installed Somepackage
Displays the installed packages (show what files were installed):


$ pip show--files somepackage
  name:somepackage
  version:1.0
  Location:/my/env/lib/pythonx.x/ Site-packages
  Files:
   .. /somepackage/__init__.py
   [...]

List all obsolete packages (list what packages are outdated):

$ pip List--outdated
  somepackage (current:1.0 latest:2.0)

Upgrade a package (Upgrade a package):

$ pip Install--upgrade somepackage
  [...]
  Found existing Installation:somepackage 1.0 uninstalling Somepackage: Successfully uninstalled somepackage
  Running setup.py Install for somepackage
  Successfully installed Somepackage

Uninstall a package (Uninstall a package:)

$ pip Uninstall somepackage
  uninstalling somepackage:
    /my/env/lib/pythonx.x/site-packages/somepackage
  Proceed (y/n)? Y
  successfully uninstalled somepackage

Upload a package of your own:

Python setup.py register
#python setup.py bdist_egg
python setup.py sdist upload
python setup.py  bdist _wininst Upload


Related Article

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.