在安装完tensorflow库后出现
问题详述:
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
问题解决:
1、打开这个网站
最新受支持的 Visual C++ 可再发行程序包下载 | Microsoft Learn
2.查看系统版本
计算机-> 右键 -> 属性
3.根据计算机版本选择,下载后双击安装,重启后再次运行import tensorflow as tf。 文章来源:https://www.toymoban.com/news/detail-616521.html
文章来源地址https://www.toymoban.com/news/detail-616521.html
到了这里,关于解决 tensorflow 出现的 ImportError: Could not find the DLL(s) ‘msvcp140_1.dll‘. 问题的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!