The value used with the -e option to pip install is .[test]. The [ character has special meaning in many popular unix shells, so must be quoted (or escaped) to get the literal character needed for pip install to interpret the value inside the square brackets as a local directory path.
A demonstration using zsh:
% pip install -e .[test]
zsh: no matches found: .[test]
Quoting .[test] yields the expected result:
% pip install -e ".[test]"
Looking in indexes: ...
It seems the pypa documentation has the same problem - see pip install example #7 . Those examples are all prefixed with python -m pip, however the same shell quoting rules still apply. I'll file a similar PR over there.
The value used with the
-e
option topip install
is.[test]
. The[
character has special meaning in many popular unix shells, so must be quoted (or escaped) to get the literal character needed forpip install
to interpret the value inside the square brackets as a local directory path.A demonstration using
zsh
:Quoting
.[test]
yields the expected result:It seems the pypa documentation has the same problem - see
pip install
example #7 . Those examples are all prefixed withpython -m pip
, however the same shell quoting rules still apply. I'll file a similar PR over there.