diff --git a/source/guides/installing-using-pip-and-virtual-environments.rst b/source/guides/installing-using-pip-and-virtual-environments.rst index e43e20e27..174dbc8c7 100644 --- a/source/guides/installing-using-pip-and-virtual-environments.rst +++ b/source/guides/installing-using-pip-and-virtual-environments.rst @@ -292,13 +292,13 @@ specifying the extra in brackets: .. code-block:: bash - python3 -m pip install requests[security] + python3 -m pip install 'requests[security]' .. tab:: Windows .. code-block:: bat - py -m pip install requests[security] + py -m pip install "requests[security]" .. _extras: https://setuptools.readthedocs.io/en/latest/userguide/dependency_management.html#optional-dependencies diff --git a/source/tutorials/installing-packages.rst b/source/tutorials/installing-packages.rst index e03e43732..6fd267112 100644 --- a/source/tutorials/installing-packages.rst +++ b/source/tutorials/installing-packages.rst @@ -653,17 +653,17 @@ you know publishes one, you can include it in the pip installation command: .. code-block:: bash - python3 -m pip install SomePackage[PDF] - python3 -m pip install SomePackage[PDF]==3.0 - python3 -m pip install -e .[PDF] # editable project in current directory + python3 -m pip install 'SomePackage[PDF]' + python3 -m pip install 'SomePackage[PDF]==3.0' + python3 -m pip install -e '.[PDF]' # editable project in current directory .. tab:: Windows .. code-block:: bat - py -m pip install SomePackage[PDF] - py -m pip install SomePackage[PDF]==3.0 - py -m pip install -e .[PDF] # editable project in current directory + py -m pip install "SomePackage[PDF]" + py -m pip install "SomePackage[PDF]==3.0" + py -m pip install -e ".[PDF]" # editable project in current directory ----