兰竹皋 发表于 2020-10-25 01:08:11

求助,导入TensorFlow失败。。。

本帖最后由 兰竹皋 于 2020-10-25 01:43 编辑

python 2.8.2

tensorflow-2.3.1-cp38-cp38-win_amd64.whl

import tensorflow 时报错:
Traceback (most recent call last):
File "D:\Programming software\Python 3.8\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: 找不到指定的模块。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\制作\Python\program\Image_processing\Keras\Tutorial_mnist.py", line 5, in <module>
    import tensorflow
File "D:\Programming software\Python 3.8\lib\site-packages\tensorflow\__init__.py", line 41, in <module>
    from tensorflow.python.tools import module_util as _module_util
File "D:\Programming software\Python 3.8\lib\site-packages\tensorflow\python\__init__.py", line 40, in <module>
    from tensorflow.python.eager import context
File "D:\Programming software\Python 3.8\lib\site-packages\tensorflow\python\eager\context.py", line 35, in <module>
    from tensorflow.python import pywrap_tfe
File "D:\Programming software\Python 3.8\lib\site-packages\tensorflow\python\pywrap_tfe.py", line 28, in <module>
    from tensorflow.python import pywrap_tensorflow
File "D:\Programming software\Python 3.8\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "D:\Programming software\Python 3.8\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed while importing _pywrap_tensorflow_internal: 找不到指定的模块。


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.


问题已解决,谢谢

兰竹皋 发表于 2020-10-25 01:42:26

之前网上说缺少vc2015,但我电脑中有2017,安装不上,也没有
后来,我尝试安装了vc2019,解决了 问题
页: [1]
查看完整版本: 求助,导入TensorFlow失败。。。