https://eumenidae.blogspot.com/2020/01/installing-external-python-modules-for.html
I had some trouble getting a local blender 2.75 in my home directory to use matplotlib - using the system wide python3.4 for some reason failed, so in the end I just copied over files to the local version until blender stopped complaining.
Required packages for Ubuntu 14.04: python3-pyparsing, python3-dateutil¸ python3-matplotlib, python3-cycler, python3-six. Using the following destination root directory ~/bin/blender/2.75/python/lib, I copied these files and folders:
source | destination |
/usr/lib/python3/dist-packages/pyparsing.py | python3.4/site-packages/ |
/usr/lib/python3/dist-packages/dateutil | python3.4/site-packages/ |
/usr/lib/python3/dist-packages/matplotlib | python3.4/site-packages/ |
/usr/lib/python3/dist-packages/mpl_toolkits | python3.4/site-packages/ |
/usr/lib/python3/dist-packages/pylab.py | python3.4/site-packages/ |
/usr/lib/python3/dist-packages/cycler.py | python3.4/site-packages/ |
/usr/lib/python3/dist-packages/six.py | python3.4/site-packages/ |
/usr/lib/python3.4/distutils | python3.4/ |