国产探花免费观看_亚洲丰满少妇自慰呻吟_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.
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 唐山市| 乌鲁木齐市| 新竹县| 宜宾县| 紫金县| 五家渠市| 安西县| 建湖县| 东方市| 治多县| 阜康市| 靖边县| 芒康县| 闸北区| 遂昌县| 黔南| 萨嘎县| 宝丰县| 南开区| 长垣县| 江源县| 阜南县| 长寿区| 阿克苏市| 武清区| 安阳县| 巴东县| 德钦县| 游戏| 景谷| 遂溪县| 获嘉县| 城固县| 新化县| 成武县| 行唐县| 台前县| 甘肃省| 循化| 江门市| 乳山市|