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

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位都安装了

ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a dire_第1张图片

重新安装python都不行,安装tf-1.14也不能解决。我擦

msvcp140.dll这个到底是啥玩意啊??

尝试了很多其他人的方法,也按照提示了操作,根本行不通。

最后根据我的小聪明解决了问题,既然这个玩意是微软的,那么它应该在电脑中本来就有,于是我直接在C盘搜索这个dll,是找到了,但是很多个,很幸运我复制过去了三个,还有140_1和140_2,放在python安装文件夹下,tf1.15成功了

三个文件似乎都有用,可以加群获取。拜拜

 

后续:20200512

三个文件都有用,请在C盘搜,看我的搜索结果

ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a dire_第2张图片

至于哪个是,你挨个试呗

 

 

另外有相关问题可以加入QQ群讨论,不设微信群

QQ群:868373192 

语音图像视频深度-学习群

 

 

你可能感兴趣的:(python)