借鑑這篇博客(感謝),他安裝的是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時正常