下面展示 cmd文本(报错内容)。
(base) C:\Users\yongz>activate tensorflow
(tensorflow) C:\Users\yongz>python
Python 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\yongz\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\yongz\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\yongz\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp,

在使用Python的TensorFlow库时遇到DLL load failed错误,主要是由于系统缺少msvcp140_1.dll文件。解决方案是访问微软官网下载并安装Visual C++ Redistributable,安装完成后即可正常导入和运行TensorFlow。
最低0.47元/天 解锁文章
19万+

被折叠的 条评论
为什么被折叠?



