diff options
author | Brad <brad.solomon.1124@gmail.com> | 2019-06-21 18:20:21 (GMT) |
---|---|---|
committer | Brett Cannon <54418+brettcannon@users.noreply.github.com> | 2019-06-21 18:20:21 (GMT) |
commit | 8b2aa1fddeb647bfbdb3b5827ddc3fdef19b8e44 (patch) | |
tree | fab7173b06517dca078ea4f17de6f30184d4af47 /Doc/tutorial | |
parent | a0d73a143af404deecb9c4fcdbd3ddbafd96b41b (diff) | |
download | cpython-8b2aa1fddeb647bfbdb3b5827ddc3fdef19b8e44.zip cpython-8b2aa1fddeb647bfbdb3b5827ddc3fdef19b8e44.tar.gz cpython-8b2aa1fddeb647bfbdb3b5827ddc3fdef19b8e44.tar.bz2 |
Use `python -m pip install` in porting guide and venv docs (GH-13257)
This is to help prevent people from accidentally installing into the wrong Python interpreter if they are not aware of which Python interpreter `pip` points to.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/venv.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/tutorial/venv.rst b/Doc/tutorial/venv.rst index dc4136e..d8bb2f5 100644 --- a/Doc/tutorial/venv.rst +++ b/Doc/tutorial/venv.rst @@ -110,7 +110,7 @@ You can install the latest version of a package by specifying a package's name: .. code-block:: bash - (tutorial-env) $ pip install novas + (tutorial-env) $ python -m pip install novas Collecting novas Downloading novas-3.1.1.3.tar.gz (136kB) Installing collected packages: novas @@ -122,7 +122,7 @@ package name followed by ``==`` and the version number: .. code-block:: bash - (tutorial-env) $ pip install requests==2.6.0 + (tutorial-env) $ python -m pip install requests==2.6.0 Collecting requests==2.6.0 Using cached requests-2.6.0-py2.py3-none-any.whl Installing collected packages: requests @@ -135,7 +135,7 @@ install --upgrade`` to upgrade the package to the latest version: .. code-block:: bash - (tutorial-env) $ pip install --upgrade requests + (tutorial-env) $ python -m pip install --upgrade requests Collecting requests Installing collected packages: requests Found existing installation: requests 2.6.0 @@ -193,7 +193,7 @@ necessary packages with ``install -r``: .. code-block:: bash - (tutorial-env) $ pip install -r requirements.txt + (tutorial-env) $ python -m pip install -r requirements.txt Collecting novas==3.1.1.3 (from -r requirements.txt (line 1)) ... Collecting numpy==1.9.2 (from -r requirements.txt (line 2)) |