Python Forum

Full Version: Module not found error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to run this code: https://matplotlib.org/examples/mplot3d/..._demo.html an I have this error:

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

How can I fix it?
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