--- Doc/installing/index.rst (revision 99789:97ab0ccac893dcc5879f1ae3989e7723c2197e21) +++ Doc/installing/index.rst (revision 99789+:97ab0ccac893+) @@ -72,7 +72,7 @@ The following command will install the latest version of a module and its dependencies from the Python Packaging Index:: - python -m pip install SomePackage + python -m pip install "SomePackage" .. note:: @@ -86,14 +86,14 @@ It's also possible to specify an exact or minimum version directly on the command line:: - python -m pip install SomePackage==1.0.4 # specific version - python -m pip install 'SomePackage>=1.0.4' # minimum version + python -m pip install "SomePackage==1.0.4" # specific version + python -m pip install "SomePackage>=1.0.4" # minimum version Normally, if a suitable module is already installed, attempting to install it again will have no effect. Upgrading existing modules must be requested explicitly:: - python -m pip install --upgrade SomePackage + python -m pip install --upgrade "SomePackage" More information and resources regarding ``pip`` and its capabilities can be found in the `Python Packaging User Guide `__. @@ -157,20 +157,20 @@ in combination with the ``-m`` switch to run the appropriate copy of ``pip``:: - python2 -m pip install SomePackage # default Python 2 - python2.7 -m pip install SomePackage # specifically Python 2.7 - python3 -m pip install SomePackage # default Python 3 - python3.4 -m pip install SomePackage # specifically Python 3.4 + python2 -m pip install "SomePackage" # default Python 2 + python2.7 -m pip install "SomePackage" # specifically Python 2.7 + python3 -m pip install "SomePackage" # default Python 3 + python3.4 -m pip install "SomePackage" # specifically Python 3.4 (appropriately versioned ``pip`` commands may also be available) On Windows, use the ``py`` Python launcher in combination with the ``-m`` switch:: - py -2 -m pip install SomePackage # default Python 2 - py -2.7 -m pip install SomePackage # specifically Python 2.7 - py -3 -m pip install SomePackage # default Python 3 - py -3.4 -m pip install SomePackage # specifically Python 3.4 + py -2 -m pip install "SomePackage" # default Python 2 + py -2.7 -m pip install "SomePackage" # specifically Python 2.7 + py -3 -m pip install "SomePackage" # default Python 3 + py -3.4 -m pip install "SomePackage" # specifically Python 3.4 .. other questions: