简体   繁体   English

我使用 PyCharm 和 Python 3.7.2 在我的 Windows 10 64 位操作系统上安装了 tensorflow 和 tensorflow_gpu。 但是我在使用 tensorflow 时遇到了这些错误

[英]I installed tensorflow and tensorflow_gpu on my Windows 10 64-bit OS with PyCharm and Python 3.7.2. But i get these errors while using tensorflow

Traceback (most recent call last): File "C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python\\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python\\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\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 "C:\\Users\\sai kushal\\AppData\\Local\\Programs\\Python\\Python37\\lib\\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\\Users\\sai kushal\\AppData\\Local\\Programs\\Python\\Python37\\lib\\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: The specified module could not be found.回溯(最近一次调用):文件“C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python\\pywrap_tensorflow.py”,第 58 行,来自 tensorflow.python.pywrap_tensorflow_internal import * 文件“C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python\\pywrap_tensorflow_internal.py”,第 28 行,在 _pywrap_tensorflow_internal = swig_import_helper() 文件“C:\\Users\\sai kushal \\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python\\pywrap_tensorflow_internal.py”,第 24 行,在 swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) 文件“C:\\Users\\ sai kushal\\AppData\\Local\\Programs\\Python\\Python37\\lib\\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\\Users\\sai kushal\\AppData\\Local\\Programs\\ Python\\Python37\\lib\\imp.py", line 342, in load_dynamic return _load(spec) ImportError: 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 "C:/Users/sai kushal/PycharmProjects/live/testing_2.py", line 1, in import tensorflow as tf File "C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow__init__.py", line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python__init__.py", line 49, in from tensorflow.python import pywrap_tensorflow File "C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python\\pywrap_tensorflow.py", line 74, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python\\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python\\pywrap_tensorflow_internal.py", line 28, in _pywrap_tenso回溯(最近一次通话):文件“C:/Users/sai kushal/PycharmProjects/live/testing_2.py”,第 1 行,导入 tensorflow 作为 tf 文件“C:\\Users\\sai kushal\\PycharmProjects\\live\\venv \\lib\\site-packages\\tensorflow__init__.py", line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-包\\tensorflow\\python__init__.py", line 49, in from tensorflow.python import pywrap_tensorflow File "C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python\\pywrap_tensorflow.py",第 74 行,在 raise ImportError(msg) ImportError: Traceback (last last call last): File "C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python\\pywrap_tensorflow.py",第 58 行,从 tensorflow.python.pywrap_tensorflow_internal 导入 * 文件“C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python\\pywrap_tensorflow_internal.py”,第 28 行,在 _pywrap_tenso rflow_internal = swig_import_helper() File "C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\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 "C:\\Users\\sai kushal\\AppData\\Local\\Programs\\Python\\Python37\\lib\\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\\Users\\sai kushal\\AppData\\Local\\Programs\\Python\\Python37\\lib\\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: The specified module could not be found. rflow_internal = swig_import_helper() 文件“C:\\Users\\sai kushal\\PycharmProjects\\live\\venv\\lib\\site-packages\\tensorflow\\python\\pywrap_tensorflow_internal.py”,第 24 行,在 swig_import_helper _mod = imp.load_module('_flow_pywrapternal , fp, pathname, description) File "C:\\Users\\sai kushal\\AppData\\Local\\Programs\\Python\\Python37\\lib\\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File " C:\\Users\\sai kushal\\AppData\\Local\\Programs\\Python\\Python37\\lib\\imp.py”,第 342 行,在 load_dynamic 返回 _load(spec) ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.无法加载本机 TensorFlow 运行时。

See https://www.tensorflow.org/install/errors for some common reasons and solutions.有关一些常见原因和解决方案,请参阅https://www.tensorflow.org/install/errors Include the entire stack trace above this error message when asking for help.寻求帮助时,请在此错误消息上方包含整个堆栈跟踪。

Python 3.7 尚不支持 tensorflow,请改用 python 3.6,这应该可以修复此错误,如果不支持,请在下面发表评论。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 python 3.86 OS Windows 10 (64-bit) 中安装 tensorflow - How to install tensorflow in python 3.86 OS Windows 10 (64-bit) 我使用 anaconda 安装了 TensorFlow-gpu,但找不到文件“cudart64_10.dll”,但该文件存在 - I Installed TensorFlow-gpu using anaconda and it cant find a file "cudart64_10.dll", but that file exists 错误“无法获取Python包含目录。 是否安装了distutils?“当我在Windows 10上构建tensorflow时 - Error “Can not get Python include directory. Is distutils installed?” when i build tensorflow on windows 10 我无法在 Windows 10 64 位上使用带有 python 3.9.0 64 位的 pip 安装任何软件包 - I unable to install any package using pip with python 3.9.0 64-bit on Windows 10 64-bit 我在 Windows 10 中运行 Tensorflow-gpu 时遇到问题 - I'm having trouble running Tensorflow-gpu in my Windows 10 如何为 windows 7 32 位系统安装 tensorflow?我在我的系统中安装了 python 3.5(32 位)并安装了 anaconda 3.4.4(32 位) - how to install tensorflow for windows 7 32bit system?i installed python 3.5(32 bit) into my system and also installed anaconda 3.4.4(32 bit) 在 PyCharm 中,Tensorflow 未在 GPU 上运行 - Tensorflow not running on GPU in PyCharm 在 PyCharm IDE 中使用 Python 3.7.0 在 Windows 10 上安装 Tensorflow - Installing Tensorflow on Windows 10 with Python 3.7.0 in PyCharm IDE 在Windows 10 64位版本中找不到名为tensorflow的模块 - No module named tensorflow found in Windows 10 64bit version 如何在 Windows 10 上运行 tensorflow? 我有 GPU Geforce gtx 1650。我可以在上面运行 tensorflow 吗? 如果是,那么如何? - How could I run tensorflow on windows 10? I have the gpu Geforce gtx 1650. Can I run tensorflow on it? if yes, then how?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM