You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have struggled a bit to install matplotlib for Python3 in a virtualenv. It would be great to have a short explicit section in the installation docs or FAQ. I believe an explicit section would help those that prefer pip over apt-get.
It is easiest to use your system package manager to install the dependencies.
If you are on Debian/Ubuntu, you can get all the dependencies required to build Matplotlib with:
sudo apt-get build-dep python-matplotlib
If you are on Fedora, you can get all the dependencies required to build Matplotlib with:
sudo dnf builddep python-matplotlib
If you are on RedHat, you can get all the dependencies required to build Matplotlib by first installing yum-builddep and then running:
su -c "yum-builddep python-matplotlib"
These commands do not build Matplotlib, but instead get and install the build dependencies, which will make building from source easier.
I have struggled a bit to install matplotlib for Python3 in a virtualenv. It would be great to have a short explicit section in the installation docs or FAQ. I believe an explicit section would help those that prefer pip over apt-get.
Key points that solved the problem:
Installing matplotlib for Python3 with pip
1. install pip3 and setuptools
2. install freetype
3. install matplotlib
I'd be happy to contribute to the text and create a pull request. Some comments what/where to add are highly appreciated.
The text was updated successfully, but these errors were encountered: