When running a basic python program such as a single line of code:
import matplotlib.pyplot as plt
I get the response
"DLL load failed: The specified module could not be found"
I use Visual Studio Code on Windows 10 and am a beginner with Python. I run Python 3.7 and installed everything using Anaconda.
I have added various system environment variables as proposed in this answer. I have verified that I can run the code in the Anaconda Powershell Prompt so there seems to be some problem between Visual Studio Code and Anaconda upon install.
I have been reading this discussion which seems to relate to the problem but do not see that they offer a solution, merely that it is fixed.
----------EDIT---------
I was able to load the libraries in Spyder (see comments) so the issue is perhaps somehow related to Visual Studio Code.