I have been trying to install tensorflow on my new machine for weeks now, and no matter what I do, I can't seem to get tensorflow to properly import into python. As soon as I try:
import tensorflow as tf
I get an error, the last paragraph of which results in:
Traceback (most recent call last):
File "C:\Users\solli\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\solli\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\solli\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "C:\Users\solli\Anaconda3\envs\tensorflow-gpu\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_pywrap_tensorflow_internal'
I've been trying to do everything I could think up to trace back why this would be happening, but I am stumped at this point.
According to this thread "On Windows, running "import tensorflow" generates No module named "_pywrap_tensorflow" error", the issue lay in a lack of MSVCP140.dll (whether it wasn't there at all or no set path variable). But when I search for it:
> where MSVCP140.DLL
C:\Windows\System32\msvcp140.dll
C:\Users\solli\Anaconda3\envs\tensorflow-gpu\msvcp140.dll
C:\Users\solli\Anaconda3\envs\tensorflow-gpu\Library\bin\msvcp140.dll
C:\Users\solli\Anaconda3\msvcp140.dll
C:\Users\solli\Anaconda3\Library\bin\msvcp140.dll
Given I am new to Windows (this went a lot easier on the linux partition), but as far as I understand, that means that the path variable (and python itself should) find the msvcp140.dll module[s]. Any and all help would be greatly appreciated!