Tensorflow2.1-gpu安装后出现 ImportError: DLL load failed: 找不到指定的模块问题Could not find the DLL(s)'msvcp140_1

借鉴这篇博客(感谢),他安装的是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时正常
在这里插入图片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章