Doc: use python -m pip
rather than plain pip
in examples
#24003
+15
−15
Conversation
|
||
.. code-block:: bash | ||
(tutorial-env) $ pip show requests | ||
(tutorial-env) $ python -m pip show requests |
rhettinger
Dec 30, 2020
Contributor
The examples already in a virtual environment should not be changed because the whole point of the environment is to make sure the correct python and pip are being targeted.
scop
Jan 2, 2021
Author
Contributor
I can revert those if that's what it takes to get this merged (please confirm), but would like to point out first that
- they will then be the only places referring to the
pip
executable rather thanpython -m pip
which might be a surprise to some readers, it gets more rare and there's no explanation for it, and - the point of using
python -m pip
instead ofpip
is just as valid in virtual envs as it is outside of them
This PR is stale because it has been open for 30 days with no activity. |
Pending @rhettinger comments above, not stale as far as I'm concerned. |
This PR is stale because it has been open for 30 days with no activity. |
Still not stale I think, see above. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Refs https://bugs.python.org/issue22295