pip/docs/quickstart.rst

66 lines
1.2 KiB
ReStructuredText
Raw Normal View History

2013-01-18 22:25:15 +01:00
Quickstart
==========
2014-02-12 06:55:43 +01:00
First, :doc:`Install pip <installing>`.
Install a package from `PyPI`_:
2013-01-18 22:25:15 +01:00
::
2014-02-12 06:55:43 +01:00
$ pip install SomePackage
[...]
Successfully installed SomePackage
2013-01-18 22:25:15 +01:00
Install a package already downloaded from `PyPI`_ or got elsewhere.
This is useful if the target machine does not have a network connection:
::
$ pip install SomePackage-1.0-py2.py3-none-any.whl
[...]
Successfully installed SomePackage
2013-01-18 22:25:15 +01:00
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
[...]
2013-01-18 22:25:15 +01:00
List what packages are outdated:
::
$ pip list --outdated
SomePackage (Current: 1.0 Latest: 2.0)
2013-01-18 22:25:15 +01:00
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
2013-01-18 22:25:15 +01:00
Uninstall a package:
::
$ pip uninstall SomePackage
Uninstalling SomePackage:
/my/env/lib/pythonx.x/site-packages/somepackage
Proceed (y/n)? y
Successfully uninstalled SomePackage
2013-01-18 22:25:15 +01:00
2014-02-12 06:55:43 +01:00
.. _PyPI: http://pypi.python.org/pypi/