I have Python 3.6 installed with Matplotlib and I created a small program, which runs and plots the graph fine. Now, I want to export the data from this program into a MySQL database. I downloaded MySQL/Python connector, which only supports Python 3.4. So, I installed Python 3.4 as well. Now,I have two Python installed. My program runs fine if I do
python test.py
If I go into 3.4 installation directory and run the same command, it fails with the error 'No module named matplotlib'. If I do
pip install matplotlib
from 3.4 directory, then it says 'requirements already satisfied'. Any idea what am I missing here?