- Instal matplotlib: https://github.com/rueckstiess/mtools/wiki/matplotlib-Installation-Guide-for-Mac-OS-X
pip3 install matplotlib
- In your created virtualenv:
.
echo "/usr/local/lib/python3.5/site-packages" > ~/.virtualenvs/MY_VIRTUALENV/lib/python3.5/site-packages/mpl_toolkits.pth
echo "/usr/local/lib/python3.5/site-packages" > ~/.virtualenvs/MY_VIRTUALENV/lib/python3.5/site-packages/matplotlib.pth
- Follow the 'frameworkpython script' approach from the http://matplotlib.org/faq/virtualenv_faq.html#pythonhome-script
- Done. Run your python script using a
frameworkpython ./my.py
command
See also:
Python 3.5 to 3.6 upgrade
Problem
Solution
and recreate the MY_VIRTUALENV