python/tensorflowpycharm 2019,python 3.6.2, win7 64bit系统,安装tensorflow出错,错误如下,解决办法给出!

Posted Treysure

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python/tensorflowpycharm 2019,python 3.6.2, win7 64bit系统,安装tensorflow出错,错误如下,解决办法给出!相关的知识,希望对你有一定的参考价值。

D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\Scripts\\python.exe D:/aWork/PycharmProjects/Pro3_test/test_1.py
Traceback (most recent call last):
  File "D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\lib\\site-packages\\tensorflow_core\\python\\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\lib\\site-packages\\tensorflow_core\\python\\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\lib\\site-packages\\tensorflow_core\\python\\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "D:\\Python3.6\\lib\\imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "D:\\Python3.6\\lib\\imp.py", line 342, 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 "D:/aWork/PycharmProjects/Pro3_test/test_1.py", line 1, in <module>
    import tensorflow as tf
  File "D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\lib\\site-packages\\tensorflow\\__init__.py", line 101, in <module>
    from tensorflow_core import *
  File "D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\lib\\site-packages\\tensorflow_core\\__init__.py", line 40, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\lib\\site-packages\\tensorflow\\__init__.py", line 50, in __getattr__
    module = self._load()
  File "D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\lib\\site-packages\\tensorflow\\__init__.py", line 44, in _load
    module = _importlib.import_module(self.__name__)
  File "D:\\Python3.6\\lib\\importlib\\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\lib\\site-packages\\tensorflow_core\\python\\__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\lib\\site-packages\\tensorflow_core\\python\\pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\lib\\site-packages\\tensorflow_core\\python\\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\lib\\site-packages\\tensorflow_core\\python\\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "D:\\aWork\\PycharmProjects\\Pro3_test\\venv\\lib\\site-packages\\tensorflow_core\\python\\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
  File "D:\\Python3.6\\lib\\imp.py", line 242, in load_module
    return load_dynamic(name, filename, file)
  File "D:\\Python3.6\\lib\\imp.py", line 342, 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.

Process finished with exit code 1

经不断尝试,最后成功,现给出适用版本,参照即可。

Package                Version
---------------------- ----------
absl-py                0.9.0
astor                  0.8.1
bleach                 1.5.0
cachetools             4.0.0
certifi                2019.11.28
chardet                3.0.4
Click                  7.0
cycler                 0.10.0
decorator              4.4.2
enum34                 1.1.9
Flask                  1.1.1
gast                   0.2.2
google-auth            1.11.2
google-auth-oauthlib   0.4.1
google-pasta           0.1.8
grpcio                 1.27.2
h5py                   2.10.0
html5lib               0.9999999
idna                   2.9
imageio                2.8.0
itsdangerous           1.1.0
Jinja2                 2.11.1
Keras-Applications     1.0.8
Keras-Preprocessing    1.1.0
kiwisolver             1.1.0
Markdown               3.2.1
MarkupSafe             1.1.1
matplotlib             3.0.3
mock                   4.0.1
mpmath                 1.1.0
networkx               2.4
numpy                  1.18.1
oauthlib               3.1.0
opencv-python          3.4.0.12
opt-einsum             3.2.0
Pillow                 7.0.0
pip                    20.0.2
protobuf               3.11.3
pyasn1                 0.4.8
pyasn1-modules         0.2.8
pyparsing              2.4.6
python-dateutil        2.8.1
PyWavelets             1.1.1
requests               2.23.0
requests-oauthlib      1.3.0
rsa                    4.0
scikit-image           0.16.2
scipy                  1.4.1
setuptools             45.3.0
six                    1.14.0
sympy                  1.5.1
tensorboard            1.13.1
tensorflow             1.5.0
tensorflow-estimator   1.13.0
tensorflow-tensorboard 1.5.1
termcolor              1.1.0
urllib3                1.25.8
Werkzeug               1.0.0
wheel                  0.34.2
wrapt                  1.12.0

 

以上是关于python/tensorflowpycharm 2019,python 3.6.2, win7 64bit系统,安装tensorflow出错,错误如下,解决办法给出!的主要内容,如果未能解决你的问题,请参考以下文章