ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a dire

在Windows 10上安装TensorFlow 1.15时遇到ImportError,提示缺少msvcp140.dll。尝试多种安装和重装方法无效。通过C盘搜索找到该DLL文件并将其复制到Python安装目录下,问题得到解决。作者提到复制了msvcp140.dll、msvcp140_1.dll和msvcp140_2.dll三个文件,所有文件对解决问题均有效,并提供了相关问题的QQ交流群。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

windows10安装tf-1.15出错了,当然不是新安装的python3.6.8,之前电脑恢复出厂设置了,但我发现文件夹似乎并没有删除,直接在原目录下安装的python,出现了这个问题

  File "D:\python36\lib\site-packages\tensorflow_core\python\platform\self_check.py",
 line 55, in preload_check
    % build_info.msvcp_dll_name)

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

我从这个网址下载安装后仍旧不行,而且在应用程序中可以看到这个玩意安装了。

而且我不管32位64位都安装了

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小李飞刀李寻欢

您的欣赏将是我奋斗路上的动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值