import TensorFlow 失败,报错:
ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. You may install this DLL by downloading Visual C++ 2015 Redistributable Update 3 from this URL: https://www.microsoft.com/en-us/download/details.aspx?id=53587
打开网址:https://www.microsoft.com/en-us/download/details.aspx?id=53587
下载:vc_redist.x64.exe
执行安装时报错: 0x80070003系统找不到指定文件
在C:\ProgramData文件下下找到Package Cache,删除。
再次执行安装,成功。
本文详细记录了解决在Python环境中导入TensorFlow时遇到的msvcp140.dll缺失问题的过程。首先,通过下载并安装Visual C++ 2015 Redistributable Update 3来尝试修复,但在初次安装时遇到错误。最终,通过删除C:ProgramDataPackageCache文件夹下的内容后重新安装,成功解决了问题。
4072

被折叠的 条评论
为什么被折叠?



