使用Pycharm运行Tensorflow教程时出现CUDA错误

时间:2019-08-09 22:13:28

标签: python tensorflow pycharm

我正在关注本教程 https://confusedcoders.com/data-science/machine-learning/setup-pycharm-for-deep-learning-with-tensorflow-keras-and-jupyter-with-virtualenv

我在运行示例代码时遇到问题 https://gist.githubusercontent.com/yashs360/e60aa1e21cadf27a7a3098f76d4f4cc3/raw/0daee7ec71a3d028d4ad9369fe1b752a0ad37e95/tensor_play

它崩溃并显示以下错误

Sub Summarize()

    Dim r As Long, rLast As Long, sht As Worksheet

    Set sht = ActiveSheet

    r = sht.Cells(Rows.Count, "B").End(xlUp).Row
    rLast = r

    Do
        If sht.Cells(r, "C").Value = "Header" Then
            sht.Cells(r, "D").Formula = "=SUM(B" & r & ":B" & rLast & ")"
            rLast = r - 1
        End If
        r = r - 1
    Loop While r > 1

End Sub

我使用上面的链接安装了最新的CUDA

我检查了环境变量,这就是我所拥有的 在系统变量下

      raise ImportError(
          "Could not find %r. TensorFlow requires that this DLL be "
          "installed in a directory that is named in your %%PATH%% "
          "environment variable. Download and install CUDA %s from "
          "this URL: https://developer.nvidia.com/cuda-90-download-archive"
          % (build_info.cudart_dll_name, build_info.cuda_version_number))

我确保重新启动Pycharm和PC本身

它仍然因该错误而崩溃

我该如何解决? 谢谢

0 个答案:

没有答案