LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Why I get error matplotlib.pyplot not found even after matplotlib install? (https://www.linuxquestions.org/questions/linux-software-2/why-i-get-error-matplotlib-pyplot-not-found-even-after-matplotlib-install-4175611546/)

sabaz 08-08-2017 04:19 AM

Why I get error matplotlib.pyplot not found even after matplotlib install?
 
Hi! I have installed Linux 12.04 in my laptop. I want to use python on Linux. I have successfully installed python3. How to install all related modules for plotting and animation? As I have installed matplotlib but code is not working and saying matplotlib.pyplot not found. Please help me how could I get all related module which are compatible with my system too. Thanks

AwesomeMachine 08-08-2017 07:19 AM

Hi sabaz,

Welcome to LQ!

Try installing python-matplotlib. You don't want to install all the python packages. That's why they are split up into different packages.

Sefyir 08-08-2017 06:00 PM

Since OP is using python3, the install command may be

Code:

sudo apt-get install python3-matplotlib
Also, using a command like

Code:

python3 -m pip install module
helps ensure you are installing to the right install of python


All times are GMT -5. The time now is 06:35 AM.