我安装了TensorFlow,当我尝试导入它时出现以下错误。我已经完成了先前查询的所有步骤,例如从此处下载Visual c ++版本 https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads,但仍然无法使用。
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Hp\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\__init__.py", line 41, in <module>
from tensorflow.python.tools import module_util as _module_util
File "C:\Users\Hp\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\__init__.py", line 50, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Hp\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 30, in <module>
self_check.preload_check()
File "C:\Users\Hp\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\platform\self_check.py", line 60, in preload_check
% " or ".join(missing))
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: https://support.microsoft.com/help/2977003/the-latest-supported-visual-c-downloads