quickstart.rst 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Quickstart
  2. ==========
  3. First, :doc:`install pip <installing>`.
  4. Install a package from `PyPI`_:
  5. ::
  6. $ pip install SomePackage
  7. [...]
  8. Successfully installed SomePackage
  9. Install a package that's already been downloaded from `PyPI`_ or
  10. obtained from elsewhere. This is useful if the target machine does not have a
  11. network connection:
  12. ::
  13. $ pip install SomePackage-1.0-py2.py3-none-any.whl
  14. [...]
  15. Successfully installed SomePackage
  16. Show what files were installed:
  17. ::
  18. $ pip show --files SomePackage
  19. Name: SomePackage
  20. Version: 1.0
  21. Location: /my/env/lib/pythonx.x/site-packages
  22. Files:
  23. ../somepackage/__init__.py
  24. [...]
  25. List what packages are outdated:
  26. ::
  27. $ pip list --outdated
  28. SomePackage (Current: 1.0 Latest: 2.0)
  29. Upgrade a package:
  30. ::
  31. $ pip install --upgrade SomePackage
  32. [...]
  33. Found existing installation: SomePackage 1.0
  34. Uninstalling SomePackage:
  35. Successfully uninstalled SomePackage
  36. Running setup.py install for SomePackage
  37. Successfully installed SomePackage
  38. Uninstall a package:
  39. ::
  40. $ pip uninstall SomePackage
  41. Uninstalling SomePackage:
  42. /my/env/lib/pythonx.x/site-packages/somepackage
  43. Proceed (y/n)? y
  44. Successfully uninstalled SomePackage
  45. .. _PyPI: https://pypi.org/