I have two python compilers on my Ubuntu 14.04 VM. I have installed
matplotlib
pip install matplotlib
import matplotlib.pyplot as plt
test.py
python3 test.py
ImportError: No module named 'matplotlib'
Use pip3
to install it:
sudo apt-get install python3-pip
sudo pip3 install matplotlib