国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > OS > Windows10 > 正文

Python3.5 win10環境下導入kera/tensorflow報錯的解決方法

2024-09-07 18:21:57
字體:
來源:轉載
供稿:網友

本文實例講述了Python3.5 win10環境下導入keras/tensorflow報錯的解決方法。分享給大家供大家參考,具體如下:

我在win10 Python3.5.2安裝keras,然后導入時報錯如下:

Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> import kerasUsing TensorFlow backend.Traceback (most recent call last): File "d:/Anaconda3/envs/tf/lib/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 18, in swig_import_helper  return importlib.import_module(mname) File "d:/Anaconda3/envs/tf/lib/importlib/__init__.py", line 126, in import_module  return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 986, in _gcd_import File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 666, in _load_unlocked File "<frozen importlib._bootstrap>", line 577, in module_from_spec File "<frozen importlib._bootstrap_external>", line 906, in create_module File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removedImportError: 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 "d:/Anaconda3/envs/tf/lib/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>  from tensorflow.python.pywrap_tensorflow_internal import * File "d:/Anaconda3/envs/tf/lib/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 21, in <module>  _pywrap_tensorflow_internal = swig_import_helper() File "d:/Anaconda3/envs/tf/lib/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 20, in swig_import_helper  return importlib.import_module('_pywrap_tensorflow_internal') File "d:/Anaconda3/envs/tf/lib/importlib/__init__.py", line 126, in import_module  return _bootstrap._gcd_import(name[level:], package, level)ImportError: No module named '_pywrap_tensorflow_internal'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "<stdin>", line 1, in <module> File "d:/Anaconda3/envs/tf/lib/site-packages/keras/__init__.py", line 3, in <module>  from . import activations File "d:/Anaconda3/envs/tf/lib/site-packages/keras/activations.py", line 4, in <module>  from . import backend as K File "d:/Anaconda3/envs/tf/lib/site-packages/keras/backend/__init__.py", line 73, in <module>  from .tensorflow_backend import * File "d:/Anaconda3/envs/tf/lib/site-packages/keras/backend/tensorflow_backend.py", line 1, in <module>  import tensorflow as tf File "d:/Anaconda3/envs/tf/lib/site-packages/tensorflow/__init__.py", line 24, in <module>  from tensorflow.python import * File "d:/Anaconda3/envs/tf/lib/site-packages/tensorflow/python/__init__.py", line 51, in <module>  from tensorflow.python import pywrap_tensorflow File "d:/Anaconda3/envs/tf/lib/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <module>  raise ImportError(msg)ImportError: Traceback (most recent call last): File "d:/Anaconda3/envs/tf/lib/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 18, in swig_import_helper  return importlib.import_module(mname) File "d:/Anaconda3/envs/tf/lib/importlib/__init__.py", line 126, in import_module  return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 986, in _gcd_import File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 666, in _load_unlocked File "<frozen importlib._bootstrap>", line 577, in module_from_spec File "<frozen importlib._bootstrap_external>", line 906, in create_module File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removedImportError: 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 "d:/Anaconda3/envs/tf/lib/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>  from tensorflow.python.pywrap_tensorflow_internal import * File "d:/Anaconda3/envs/tf/lib/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 21, in <module>  _pywrap_tensorflow_internal = swig_import_helper() File "d:/Anaconda3/envs/tf/lib/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 20, in swig_import_helper  return importlib.import_module('_pywrap_tensorflow_internal') File "d:/Anaconda3/envs/tf/lib/importlib/__init__.py", line 126, in import_module  return _bootstrap._gcd_import(name[level:], package, level)ImportError: No module named '_pywrap_tensorflow_internal'Failed to load the native TensorFlow runtime.See https://www.tensorflow.org/install/install_sources#common_installation_problemsfor some common reasons and solutions. Include the entire stack traceabove this error message when asking for help.
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 阳城县| 南岸区| 鹤峰县| 霍州市| 荆州市| 涞源县| 随州市| 柏乡县| 汶上县| 金阳县| 东宁县| 土默特左旗| 兰考县| 固安县| 莒南县| 桃源县| 平塘县| 余江县| 西乌珠穆沁旗| 当阳市| 泾源县| 京山县| 镇赉县| 庐江县| 明水县| 阿勒泰市| 台州市| 平远县| 成武县| 桃源县| 穆棱市| 青阳县| 镶黄旗| 柳河县| 寿阳县| 上饶县| 汶上县| 永泰县| 板桥市| 理塘县| 凤山县|