- It can be difficult to install a Python machine learning environment on Mac OS X. Python itself must be installed first, and then there are many packages to install, and it can be confusing for beginners. In this tutorial, you will discover how to setup a Python 3 machine learning and deep learning development environment using macports.
- In this tutorial, we will learn about installing matplotlib on different operating systems like windows and mac os, we will also have a brief look at how to work with matplotlib in jupyter notebook. In order to start working with matplotlib, we need to make sure it’s installed first on our system.
Requirements and versions
backtrader
is self-contained with no external dependencies (except if youwant to plot)
Basic requirements are:
Python 2.7
Python 3.2 / 3.3/ 3.4 / 3.5
pypy/pypy3

Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. Check out our home page for more information. Matplotlib produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms.
Additional requirements if plotting is wished:
Matplotlib >= 1.4.1
It may work with previous versions, but this the one used fordevelopment
NOTE: At the time of writing Matplotlib is not supported under pypy/pypy3
Python 2.x/3.x compatibility
Development takes place under Python 2.7 and sometimes under 3.4. Tests are runlocally with both versions.

Compatibility with 3.2 / 3.3 / 3.5 and pypy/pyp3 is checked with continuousintegration under Travis
Install from pypi
Unable To Install Matplotlib On Mac
For example using pip:
easy_install with the same syntax can also be applied
Install from pypi (including matplotlib)
Use this if plotting capabilities are wished:
This pulls in matplotlib which will in turn pull in other dependencies.
Again you may prefer (or only have access to …) easy_install
Install from source
First downloading a release or the latest tarball from the github site:

Pip Install Matplotlib
And after unpacking run the command:
Run from source in your project
Download a release or the latest tarball from the github site:
How To Install Matplotlib Python
And then copy the backtrader package directory to your own project. Under aUnix-like OS for example:
Remember that you would then need to manually install matplotlib
forplotting.
