【发布时间】:2021-05-27 21:22:18
【问题描述】:
尝试在终端运行python,已经完成:
(base) C:\Users\Yinqi\trRosetta2\trRosetta>conda create -n tf tensorflow
但是遇到了这个错误:
ImportError: DLL load failed: The specified module could not be found. Failed to load the native TensorFlow runtime.
完整的追溯:
File "C:\Users\Yinqi\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "predict.py", line 6, in <module>
import tensorflow as tf
File "C:\Users\Yinqi\anaconda3\lib\site-packages\tensorflow\__init__.py", line 41, in <module>
from tensorflow.python.tools import module_util as _module_util
File "C:\Users\Yinqi\anaconda3\lib\site-packages\tensorflow\python\__init__.py", line 40, in <module>
from tensorflow.python.eager import context
File "C:\Users\Yinqi\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 35, in <module>
from tensorflow.python import pywrap_tfe
File "C:\Users\Yinqi\anaconda3\lib\site-packages\tensorflow\python\pywrap_tfe.py", line 28, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Yinqi\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Yinqi\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: The specified module could not be found.
Python 版本 3.7.7,Windows 版本 20h2
我正在查看此问题,但不确定如何解决:https://github.com/tensorflow/tensorflow/issues/38916
编辑: 运行 tensorflow 似乎需要支持 AVX 的 cpu,而我没有。
【问题讨论】:
标签: python windows tensorflow terminal conda