All Collections
Technology and Integrations
Issues with MatPlotLib library
Issues with MatPlotLib library

Errors when executing python3 <filename>.py

Ian avatar
Written by Ian
Updated over a week ago

When installing this library using 

sudo apt-get install python3-matplotlib

and trying to execute the file, errors are seen

If you installed MatPlotLib library using ‘sudo apt-get install python3-matplotlib’ then you may see the following error when executing the python file (python3 filename)

Python3 has problems with this so instead install this library using

sudo apt-get install python-matplotlib

When you have this, Restart the Box (Project->Restart Box) and then execute the file using


(you will see some warnings but they don't stop it working)

And then Preview the project (using Box URL) to see something similar to

Click on the Preview menu then select the Box URL option, this will show the visual response (graph) depending on the content of your file and library.

Did this answer your question?