0

I am trying to run some python on a Raspberry Pi. I am using: Import matplotlib.pyplot as plt

I tryed installing Matplotlib many ways: pip install matplotlib, pip3 install matplotlib, sudo apt-get install python3-matplotlib,

I keep getting the ImportError: No module named matplotlib.pyplot

Thanks for helping

3
  • almost certainly because your pip and your python are not in the same environment. Try which pip and which python. Try python -m pip install matplotlib, which will force the install into the same environment as your python. Commented Apr 23, 2022 at 0:26
  • matplotlib.org/3.1.3/faq/virtualenv_faq.html Also see here Commented Apr 23, 2022 at 0:26
  • You can also see then modern version of the above: matplotlib.org/stable/users/installing/… Commented Apr 23, 2022 at 0:29

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.