我安装了最新的 python 3.6.4 x64 版本
然后使用 pip3 为 cpu-only 安装了 tensorflow
C:\>pip3 install tensorflow
Run Code Online (Sandbox Code Playgroud)
但是当我尝试在 python 中导入 tensorflow 时
它向我展示了下面的错误
我确定我已经安装了 Microsoft Visual C++ 2015 Redistributable(x64)
所以不会是dll msvcp140.dll丢失的问题
它说“DLL加载失败,错误代码-1073741795”
那么这里的问题究竟是什么
我找不到有关此错误代码的任何其他信息
我的操作系统:Windows 7 Enterprise with Service Pack 1 / 64 位 / intel core i5 M 540
>>> import tensorflow
Traceback (most recent call last):
File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\site-packages\t
ensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Alan\AppData\Local\Programs\Python\Python36\lib\importlib\__ini
t__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, …Run Code Online (Sandbox Code Playgroud)