为了账号安全,请及时绑定邮箱和手机立即绑定

正确安装之后import报错是怎么回事?

C:\>python

Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)] on win32

Type "help", "copyright", "credits" or "license" for more information.

>>>

>>> import keras

e:\Users\Dev\Anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.

  from ._conv import register_converters as _register_converters

Using TensorFlow backend.

Traceback (most recent call last):

  File "e:\Users\Dev\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>

    from tensorflow.python.pywrap_tensorflow_internal import *

  File "e:\Users\Dev\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>

    _pywrap_tensorflow_internal = swig_import_helper()

  File "e:\Users\Dev\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper

    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

  File "e:\Users\Dev\Anaconda3\lib\imp.py", line 243, in load_module

    return load_dynamic(name, filename, file)

  File "e:\Users\Dev\Anaconda3\lib\imp.py", line 343, in load_dynamic

    return _load(spec)

ImportError: DLL load failed: 找不到指定的模块。


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "e:\Users\Dev\Anaconda3\lib\site-packages\keras\__init__.py", line 3, in <module>

    from . import utils

  File "e:\Users\Dev\Anaconda3\lib\site-packages\keras\utils\__init__.py", line 6, in <module>

    from . import conv_utils

  File "e:\Users\Dev\Anaconda3\lib\site-packages\keras\utils\conv_utils.py", line 9, in <module>

    from .. import backend as K

  File "e:\Users\Dev\Anaconda3\lib\site-packages\keras\backend\__init__.py", line 89, in <module>

    from .tensorflow_backend import *

  File "e:\Users\Dev\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py", line 5, in <module>

    import tensorflow as tf

  File "e:\Users\Dev\Anaconda3\lib\site-packages\tensorflow\__init__.py", line 24, in <module>

    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import

  File "e:\Users\Dev\Anaconda3\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>

    from tensorflow.python import pywrap_tensorflow

  File "e:\Users\Dev\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>

    raise ImportError(msg)

ImportError: Traceback (most recent call last):

  File "e:\Users\Dev\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>

    from tensorflow.python.pywrap_tensorflow_internal import *

  File "e:\Users\Dev\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>

    _pywrap_tensorflow_internal = swig_import_helper()

  File "e:\Users\Dev\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper

    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

  File "e:\Users\Dev\Anaconda3\lib\imp.py", line 243, in load_module

    return load_dynamic(name, filename, file)

  File "e:\Users\Dev\Anaconda3\lib\imp.py", line 343, in load_dynamic

    return _load(spec)

ImportError: DLL load 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.

>>>


正在回答

4 回答

你用的tensorFlow 版本太新了,不支持老cpu,用3.5的

0 回复 有任何疑惑可以回复我~

怎么装一般的tensorflow啊

0 回复 有任何疑惑可以回复我~
#1

慕瓜9063675 提问者

你百度一下,anaconda查看tensorflow版本,查看了之后再安装就可以装上1.10的好像是
2018-12-04 回复 有任何疑惑可以回复我~

嗯嗯,重新安装了一般tensorflow,已经能正常的跑了

0 回复 有任何疑惑可以回复我~

你用的tensorFlow 版本太新了,不支持老cpu,用3.5的

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

正确安装之后import报错是怎么回事?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信