Search code examples
pythonwindowsanacondaspyderenvironment

Adding libraries in Spyder


I installed the libraries I needed by using these commands below:

conda install matplotlib

conda install numpy

I see the '# All requested packages already installed.' in terminal. But when I try to run the code again, I get this warning: ModuleNotFoundError: No module named 'matplotlib.pylot'

Can somebody help me how to fix this problem?


Solution

  • This is likely occurring because the environment in which you installed the packages is not the one set as interpreter in spyder. See how to change interpreter in spyder here