Skip to content

Commit 76d9a6b

Browse files
committed
Issue26017 - Suggest enclosing command args in double quotes when using characters which get interpreted by shell.
1 parent 3567651 commit 76d9a6b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Doc/installing/index.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,12 @@ dependencies from the Python Packaging Index::
8484
Python.
8585

8686
It's also possible to specify an exact or minimum version directly on the
87-
command line::
87+
command line. When using comparator operators such as ``>``, ``<`` or some other
88+
special character which get interpreted by shell, the package name and the
89+
version should be enclosed within double quotes::
8890

8991
python -m pip install SomePackage==1.0.4 # specific version
90-
python -m pip install 'SomePackage>=1.0.4' # minimum version
92+
python -m pip install "SomePackage>=1.0.4" # minimum version
9193

9294
Normally, if a suitable module is already installed, attempting to install
9395
it again will have no effect. Upgrading existing modules must be requested

0 commit comments

Comments
 (0)