ImportError: Could not find the DLL(s) 'msvcp140_1.dll'.

报错信息

ImportError: Could not find the DLL(s) 'msvcp140_1.dll'. TensorFlow requires that these DLLs be installed in a directory that is named in your %PATH% environment variable. You may install these DLLs by downloading "Microsoft C++ Redistributable for Visual Studio 2015, 2017 and 2019" for your platform from this URL:

报错原因

缺少关键文件

解决方案

1、打开网址  https://support.microsoft.com/zh-cn/help/2977003/the-latest-supported-visual-c-downloads

选择适合的版本然后下载

下载之后,安装,然后重启电脑

发布了1185 篇原创文章 · 获赞 310 · 访问量 117万+

猜你喜欢

转载自blog.csdn.net/qq_37591637/article/details/103927162