update quickstart.rst to use tabs
@@ -6,25 +6,45 @@ First, :doc:`install pip <installing>`.
Install a package from `PyPI`_:
-::
+.. tabs::
+
+ .. code-tab:: Bash Unix
$ python -m pip install SomePackage
[...]
Successfully installed SomePackage
+ .. code-tab:: Bash Windows
+
+ $ py -m pip install SomePackage
+ [...]
+ Successfully installed SomePackage
+
+
Install a package that's already been downloaded from `PyPI`_ or
obtained from elsewhere. This is useful if the target machine does not have a
network connection:
-::
+.. tabs::
+
+ .. code-tab:: Bash Unix
$ python -m pip install SomePackage-1.0-py2.py3-none-any.whl
[...]
Successfully installed SomePackage
+ .. code-tab:: Bash Windows
+
+ $ py -m pip install SomePackage-1.0-py2.py3-none-any.whl
+ [...]
+ Successfully installed SomePackage
+
+
Show what files were installed:
-::
+.. tabs::
+
+ .. code-tab:: Bash Unix
$ python -m pip show --files SomePackage
Name: SomePackage
@@ -34,16 +54,35 @@ Show what files were installed:
../somepackage/__init__.py
[...]
+ .. code-tab:: Bash Windows
+
+ $ py -m pip show --files SomePackage
+ Name: SomePackage
+ Version: 1.0
+ Location: /my/env/lib/pythonx.x/site-packages
+ Files:
+ ../somepackage/__init__.py
+ [...]
+
List what packages are outdated:
-::
+.. tabs::
+
+ .. code-tab:: Bash Unix
$ python -m pip list --outdated
SomePackage (Current: 1.0 Latest: 2.0)
+ .. code-tab:: Bash Windows
+
+ $ py -m pip list --outdated
+ SomePackage (Current: 1.0 Latest: 2.0)
+
Upgrade a package:
-::
+.. tabs::
+
+ .. code-tab:: Bash Unix
$ python -m pip install --upgrade SomePackage
[...]
@@ -53,9 +92,21 @@ Upgrade a package:
Running setup.py install for SomePackage
Successfully installed SomePackage
+ .. code-tab:: Bash Windows
+
+ $ py -m 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:
-::
+.. tabs::
+
+ .. code-tab:: Bash Unix
$ python -m pip uninstall SomePackage
Uninstalling SomePackage:
@@ -63,5 +114,13 @@ Uninstall a package:
Proceed (y/n)? y
Successfully uninstalled SomePackage
+ .. code-tab:: Bash Windows
+
+ $ py -m pip uninstall SomePackage
+ Uninstalling SomePackage:
+ /my/env/lib/pythonx.x/site-packages/somepackage
+ Proceed (y/n)? y
+ Successfully uninstalled SomePackage
+
.. _PyPI: https://pypi.org/
