我正在使用 Python 3.6.0 并且我使用 下载了 tensorflow pip install tensorflow
,我尝试了几次卸载 tensorflow 并安装另一个版本的 tensorflow 但它没有用......哪个版本的 tensorflow 适合我?(我现在使用的是 1.15.0 版)
这是导入错误:
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\pythonProject1\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\User\Desktop\adsp\train.py", line 1, in <module>
import tensorflow as tf
File "C:\Users\User\PycharmProjects\pythonProject1\venv\lib\site-packages\tensorflow\__init__.py", line 41, in <module>
from tensorflow.python.tools import module_util as _module_util
File "C:\Users\User\PycharmProjects\pythonProject1\venv\lib\site-packages\tensorflow\python\__init__.py", line 39, in <module>
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
File "C:\Users\User\PycharmProjects\pythonProject1\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\pythonProject1\venv\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
您需要安装 C++ redist 库 C++
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句