🌐
Matplotlib
matplotlib.org › stable › install › index.html
Installation — Matplotlib 3.10.8 documentation
conda install -c conda-forge matplotlib ... Linux distribution, you can install Matplotlib via your package manager, e.g.: Debian / Ubuntu: sudo apt-get install python3-matplotlib ·...
🌐
Anaconda.org
anaconda.org › conda-forge › matplotlib
matplotlib - conda-forge
Organization created on Apr 11, 2015 · A community-led collection of recipes, build infrastructure, and distributions for the conda package manager
🌐
Matplotlib
matplotlib.org › 3.6.3 › users › installing › index.html
Installation — Matplotlib 3.6.3 documentation
conda install -c conda-forge matplotlib ... Linux distribution, you can install Matplotlib via your package manager, e.g.: Debian / Ubuntu: sudo apt-get install python3-matplotlib ·...
🌐
Problem Solving with Python
problemsolvingwithpython.com › 06-Plotting-with-Matplotlib › 06.02-Installing Matplotlib
Installing Matplotlib - Problem Solving with Python
Matplotlib can be installed using with the Anaconda Prompt. If the Anaconda Prompt is available on your machine, it can usually be seen in the Windows Start Menu. To install Matplotlib, open the Anaconda Prompt and type: > conda install matplotlib · Type y for yes when prompted.
🌐
Matplotlib
matplotlib.org › 3.5.0 › users › installing › index.html
Installation — Matplotlib 3.5.0 documentation
conda install -c conda-forge matplotlib ... Linux distribution, you can install Matplotlib via your package manager, e.g.: Debian / Ubuntu: sudo apt-get install python3-matplotlib ·...
🌐
Matplotlib
matplotlib.org › 3.3.3 › users › installing.html
Installation Guide — Matplotlib 3.3.3 documentation
November 12, 2020 - # Pick ONE of the following: sudo apt install pkg-config # Debian/Ubuntu sudo dnf install pkgconf # Fedora brew install pkg-config # macOS with Homebrew conda install pkg-config # conda # Or point the PKG_CONFIG environment variable to the path to pkg-config: export PKG_CONFIG=...
🌐
Matplotlib
matplotlib.org › 2.2.0 › users › installing.html
Installing — Matplotlib 2.2.0 documentation
If in doubt: use Python >= 3.5 ... aware that pyqt doesn't mix well if # you have created the environment with conda-forge already activated...) conda install pyqt # this package is only available in the c...
Find elsewhere
🌐
Matplotlib
matplotlib.org › 3.2.2 › users › installing.html
Installing — Matplotlib 3.2.2 documentation
The following example illustrates how to install libpng and FreeType using brew: ... Note that your environment is somewhat important. Some conda users have found that, to run the tests, their PYTHONPATH must include /path/to/anaconda/.../site-packages and their DYLD_FALLBACK_LIBRARY_PATH must ...
🌐
Matplotlib
matplotlib.org › 3.4.1 › users › installing.html
Installation — Matplotlib 3.4.1 documentation
conda install -c conda-forge matplotlib ... Linux distribution, you can install Matplotlib via your package manager, e.g.: Debian / Ubuntu: sudo apt-get install python3-matplotlib ·...
🌐
Matplotlib
matplotlib.org › 3.5.2 › users › installing › index.html
Installation — Matplotlib 3.5.2 documentation
conda install -c conda-forge matplotlib ... Linux distribution, you can install Matplotlib via your package manager, e.g.: Debian / Ubuntu: sudo apt-get install python3-matplotlib ·...
🌐
Matplotlib
matplotlib.org › 3.4.3 › users › installing.html
Installation — Matplotlib 3.4.3 documentation
August 13, 2021 - conda install -c conda-forge matplotlib ... Linux distribution, you can install Matplotlib via your package manager, e.g.: Debian / Ubuntu: sudo apt-get install python3-matplotlib ·...
Top answer
1 of 3
5

If you're using anaconda, your default environment is Python 2.7. You need to create a new environment and install matplotlib in there.

In a command prompt, do the following (saying yes to the questions):

conda create --name mpl33 python=3.3 matplotlib ipython-notebook
activate mpl33
ipython notebook

You should be able to import matplotlib when the notebook server comes up.

  • The first command simultaneously creates the environment and install the listed packages.
  • The second command activates the new environment by prepending its location to the system path
  • The third command just starts the ipython notebook so that you can test out everything

I don't know how pycharm works, but my guess is that you'll have to tell it to look for the right python that you want to use. In this case it'll be something like: C:/Users//anaconda/envs/mpl33. In any case, the command prompt should display the path when you activate the environment.

Once you've activated your environment, you can install more packages like this:

conda install pandas=0.12
conda install pyodbc statsmodels

You can specific version numbers of packages like the first command or simply accept the latest available version (default)

2 of 3
5

Assuming you've already installed a 3.x python env in anaconda, this one line should do the trick:
conda install matplotlib -n name
where name is the name you previously gave to your python 3 anaconda env. If you're not sure of the name you gave it, it will be the name of a subdir in the Anaconda\envs directory.

Background: I recently went through the same trouble with matplotlib not getting installed by default by anaconda when I added a full python 3 env, even though it's meant to. The above line solved it for me; it gave me the following warnings so it seems likely that the two different available versions caused it to initially install neither. However it allowed me to choose the one I wanted, and then everything worked great.

Warning: 2 possible package resolutions:
[u'dateutil-2.1-py33_2.tar.bz2', u'matplotlib-1.3.1-np18py33_1.tar.bz2', u'numpy-1.8.0-py33_0.tar.bz2', u'pyparsing-2.0.1-py33_0.tar.bz2', u'pyside-1.2.1-py33_0.tar.bz2', u'python-3.3.5-0.tar.bz2', u'pytz-2013b-py33_0.tar.bz2', u'six-1.6.1-py33_0.tar.bz2']
[u'dateutil-2.1-py33_2.tar.bz2', u'matplotlib-1.3.1-np17py33_1.tar.bz2', u'numpy-1.7.1-py33_3.tar.bz2', u'pyparsing-1.5.6-py33_0.tar.bz2', u'pyside-1.2.1-py33_0.tar.bz2', u'python-3.3.5-0.tar.bz2', u'pytz-2013b-py33_0.tar.bz2', u'six-1.6.1-py33_0.tar.bz2' ]

🌐
Matplotlib
matplotlib.org › stable › users › installing › index.html
Installation — Matplotlib 3.8.4 documentation
May 28, 2023 - Mandatory dependencies should be installed automatically if you install Matplotlib using a package manager such as pip or conda; therefore this list is primarily for reference and troubleshooting.
🌐
Professorkazarinoff
professorkazarinoff.github.io › Problem-Solving-101-with-Python › 05-Plotting-with-Matplotlib › 05.02-Installing Matplotlib
Installing Matplotlib - Problem Solving 101 with Python
To install matplotlib with the Anaconda Prompt, open the Anaconda Prompt and type: > conda install matplotlib · Type y for yes when prompted. To install Matplotlib with pip (the Python package manager), open a terminal window and type: $ pip install matplotlib ·
🌐
Matplotlib
matplotlib.org › stable › users › installing.html
Matplotlib
August 13, 2021 - Created using Sphinx 8.2.3 · Built from v3.10.8-7-g1957ba3918
🌐
Matplotlib
matplotlib.org › 3.3.2 › users › installing.html
Installation Guide — Matplotlib 3.3.2 documentation
# Pick ONE of the following: sudo apt install pkg-config # Debian/Ubuntu sudo dnf install pkgconf # Fedora brew install pkg-config # macOS with Homebrew conda install pkg-config # conda # Or point the PKG_CONFIG environment variable to the path to pkg-config: export PKG_CONFIG=...
🌐
Anaconda.org
anaconda.org › anaconda › matplotlib
matplotlib - anaconda | Anaconda.org
January 13, 2026 - anaconda/matplotlib · Community · Publication quality figures in Python · Overview · Files 869 · Labels 1 · Badges · Versions · 3.10.8 · To install this package, run one of the following: $conda install anaconda::matplotlib · Monthly · Downloads Updates ·