I have Python 3.6 installed using Anaconda as the sole Python instance on my computer. Following the installation instructions on TensorFlow, I created a conda environment called tensorflow running Python 3.5, activated it and ran pip install --ignore-installed --upgrade tensorflow to install tensorflow. While inside the environment I am able to validate the installation by running import tensorflow, which works fine. To run my scripts in this environment in VS Code, I followed the instructions on configuring Python environments and selected the interpreter such that it corresponds to the conda environment I created. This adjusts the python path variable in VS Code's user settings accordingly.
{
"window.zoomLevel": 2,
"files.autoSave": "off",
"workbench.colorTheme": "Abyss",
"python.pythonPath": "C:\\Users\\osharaki\\Anaconda3\\envs\\tensorflow\\python.exe"
}
However, when I try to run a script inside VS Code that imports tensorflow I still receive the following error:
ModuleNotFoundError: No module named 'tensorflow'
The resource that came closest to answering my issue was this.
What am I missing?