刚安装好tensorflow安装包去试试import tensorflow as ft时,出现错误。

错误原因:
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.

解决办法:
1、打开这个网站
https://support.microsoft.com/zh-cn/help/2977003/the-latest-supported-visual-c-downloads

2、在这里下载vc_redist64.exe文件。
解决ImportError: Could not find the DLL(s) ‘msvcp140_1.dll‘问题
3、下载后双击安装,然后重启就行了。再次运行import tensorflow as tf就不会报错了。

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2021-04-06
  • 2021-10-26
  • 2021-12-24
  • 2021-10-28
  • 2022-12-23
猜你喜欢
  • 2021-07-02
  • 2021-06-23
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2021-05-03
相关资源
相似解决方案