I'm learning python3 (--version 3.7.3) and I'm using Anaconda 3 (conda --version 4.8.2) on a Windows 10 computer, writing with Sublime Text 3.2.2.
If I can use matplotlib from the command line, and other files with the same import statement worked fine, why would I suddenly keep getting error messages when I try to build my .py file where the first line is
import matplotlib.pyplot as plt
or
from matplotlib import pyplot
My error message is
ModuleNotFoundError: No module named 'matplotlib'
Meanwhile, the same program done interactively while in the SAME directory, no problema. And to make it even weirder, other files in the same folder with the same import statement, worked fine. Now, however, they are giving me the error message.
I've renamed the folder I was saving my files in and renamed or moved files around a bit, but that's pretty much the only change. Would I have to reinstall every time I move a file or rename a folder? Could it be a problem with Sublime, since the command line is working?
Please explain like I'm 5 and in remedial kindergarten.