借鉴这篇博客(感谢),他安装的是cpu版本,
而我安装的是gpu版
(我的环境为cuda10.1+cudnn7.6.5)
发现通过pip install直接安装Tensorflow2.1后
ImportError: DLL load failed: cannot find the specified module
Could not find the DLL(s)'msvcp140_1.dll
ImportError: DLL load failed: 找不到指定的模块问题
import tensorflow
时会出现 ImportError: DLL load failed: 找不到指定的模块问题问题
根据提示信息,去微软的官网下载Visual C++即可:
微软的官网下载Visual C++
根据自己的系统配置选择下载安装
之后就可以导入tensorflow时正常