安装Tensorflow的问题 - 不是CUDA / CuDNN问题
我最近开始进入Tensorflow,但我遇到了安装问题。每次我尝试导入它时,我都会收到以下错误
>>> import tensorflow as tfTraceback (most recent call last): File "C:\Users\[user]\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper return importlib.import_module(mname) File "C:\Users\[user]\AppData\Local\Programs\Python\Python36\lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 658, in _load_unlocked File "<frozen importlib._bootstrap>", line 571, in module_from_spec File "<frozen importlib._bootstrap_external>", line 922, in create_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removedImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.During handling of the above exception, another exception occurred:Traceback (most recent call last): File "C:\Users\[user]\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module> from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\[user]\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in <module> _pywrap_tensorflow_internal = swig_import_helper()
我查看了与我有同样问题的其他堆栈溢出帖子,他们建议从NVIDIA获取CUDA库。问题是,我既没有NVIDIA显卡也没有GPU版本的张量流,所以我不认为这是问题所在。还有一些建议可以确保安装Visual Studio的Microsoft可再发行组件。
如果这是一个基于系统变量的问题,我很感激帮助改变系统变量,因为我是新手。谢谢!
一些系统信息:
操作系统:Microsoft Windows 10 Pro版本10.0.17134
CPU:Intel Xeon E5620
显卡:Radeon RX 480
Python版本:3.6.5 amd64 Tensorflow
安装方法:pip install tensorflow
梦里花落0921
相关分类