Python Forum
Module not found error - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: Module not found error (/thread-12812.html)



Module not found error - minifizikus - Sep-14-2018

I want to run this code: https://matplotlib.org/examples/mplot3d/surface3d_demo.html an I have this error:

from mpl_toolkits.mplot3d import Axes3D
ModuleNotFoundError: No module named 'mpl_toolkits'

How can I fix it?


RE: Module not found error - Axel_Erfurt - Sep-14-2018

I've had the same on Ubuntu with python 3.6 and solved it with

Quote:pip3.6 install --user --upgrade matplotlib
pip3.6 install --user --upgrade numpy
sudo apt-get install python3.6-tk