这个问题多见于tensorflow 2.1以上,因为tensorflow默认调用gpu,所以以来一些动态链接文件,通过下面的链接下载安装Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019.即可解决问题
注意:一定要是 Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019.其他版本不管用。
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
问题解决后还会遇到一些警告,说没有安装cuda,如果不用gpu训练,可以不用管