Skip to content

Fixed python -mpip typo #19757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ install:
- conda install -c conda-forge pywin32
- echo %PYTHON_VERSION% %TARGET_ARCH%
# Install dependencies from PyPI.
- python -mpip install --upgrade -r requirements/testing/all.txt %EXTRAREQS% %PINNEDVERS%
- python -m pip install --upgrade -r requirements/testing/all.txt %EXTRAREQS% %PINNEDVERS%
# Install optional dependencies from PyPI.
# Sphinx is needed to run sphinxext tests
- python -mpip install --upgrade sphinx
- python -m pip install --upgrade sphinx
# Show the installed packages + versions
- conda list

Expand Down
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ commands:
- run:
name: Upgrade pip, setuptools, wheel
command: |
python -mpip install --upgrade --user pip
python -mpip install --upgrade --user wheel
python -mpip install --upgrade --user setuptools
python -m pip install --upgrade --user pip
python -m pip install --upgrade --user wheel
python -m pip install --upgrade --user setuptools

deps-install:
parameters:
Expand All @@ -67,14 +67,14 @@ commands:
- run:
name: Install Python dependencies
command: |
python -mpip install --user numpy<< parameters.numpy_version >> codecov coverage
python -mpip install --user -r requirements/doc/doc-requirements.txt
python -m pip install --user numpy<< parameters.numpy_version >> codecov coverage
python -m pip install --user -r requirements/doc/doc-requirements.txt

mpl-install:
steps:
- run:
name: Install Matplotlib
command: python -mpip install --user -ve .
command: python -m pip install --user -ve .

doc-build:
steps:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,17 @@ jobs:
run: |
# Upgrade pip and setuptools and wheel to get as clean an install as
# possible.
python -mpip install --upgrade pip setuptools wheel
python -m pip install --upgrade pip setuptools wheel

# Install dependencies from PyPI.
python -mpip install --upgrade $PRE \
python -m pip install --upgrade $PRE \
cycler kiwisolver numpy pillow pyparsing python-dateutil \
-r requirements/testing/all.txt \
${{ matrix.extra-requirements }}

# Install optional dependencies from PyPI.
# Sphinx is needed to run sphinxext tests
python -mpip install --upgrade sphinx
python -m pip install --upgrade sphinx

# GUI toolkits are pip-installable only for some versions of Python
# so don't fail if we can't install them. Make it easier to check
Expand All @@ -160,8 +160,8 @@ jobs:
# pycairo 1.20+ requires a new version of Cairo, unavailable on
# Ubuntu 16.04, so PyGObject must be installed without build
# isolation in order to pick up the lower pre-installed version.
python -mpip install --upgrade 'pycairo<1.20.0' 'cairocffi>=0.8' &&
python -mpip install --upgrade --no-build-isolation PyGObject &&
python -m pip install --upgrade 'pycairo<1.20.0' 'cairocffi>=0.8' &&
python -m pip install --upgrade --no-build-isolation PyGObject &&
python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
echo 'PyGObject is available' ||
echo 'PyGObject is not available'
Expand All @@ -170,16 +170,16 @@ jobs:
# Sept 2020) for either pyqt5 (there are only wheels for 10.13+) or
# pyside2 (the latest version (5.13.2) with 10.12 wheels has a
# fatal to us bug, it was fixed in 5.14.0 which has 10.13 wheels)
python -mpip install --upgrade pyqt5${{ matrix.pyqt5-ver }} &&
python -m pip install --upgrade pyqt5${{ matrix.pyqt5-ver }} &&
python -c 'import PyQt5.QtCore' &&
echo 'PyQt5 is available' ||
echo 'PyQt5 is not available'
python -mpip install --upgrade pyside2 &&
python -m pip install --upgrade pyside2 &&
python -c 'import PySide2.QtCore' &&
echo 'PySide2 is available' ||
echo 'PySide2 is not available'
fi
python -mpip install --upgrade \
python -m pip install --upgrade \
-f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 \
wxPython &&
python -c 'import wx' &&
Expand All @@ -199,7 +199,7 @@ jobs:

# All dependencies must have been pre-installed, so that the minver
# constraints are held.
python -mpip install --no-deps -e .
python -m pip install --no-deps -e .

if [[ "${{ runner.os }}" != 'macOS' ]]; then
unset CPPFLAGS
Expand Down
2 changes: 1 addition & 1 deletion doc/devel/development_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ development source directory. This allows you to import your modified version
of Matplotlib without re-installing after every change. Note that this is only
true for ``*.py`` files. If you change the C-extension source (which might
also happen if you change branches) you will have to re-run
``python -mpip install -ve .``
``python -m pip install -ve .``

.. _test-dependencies:

Expand Down
2 changes: 1 addition & 1 deletion doc/faq/installing_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ dependencies will be installed as well.
If, for some reason, you cannot use the package manager, you may use the wheels
available on PyPI::

python -mpip install matplotlib
python -m pip install matplotlib

or :ref:`build Matplotlib from source <install-from-git>`.

Expand Down
2 changes: 1 addition & 1 deletion doc/faq/troubleshooting_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ mode::
rm -rf /path/to/site-packages/matplotlib*
git clean -xdf
git pull
python -mpip install -v . > build.out
python -m pip install -v . > build.out
python -c "from pylab import *; set_loglevel('debug'); plot(); show()" > run.out

and post :file:`build.out` and :file:`run.out` to the `matplotlib-devel
Expand Down