【发布时间】:2019-05-06 20:14:00
【问题描述】:
您好,我正在尝试在 cuda 10.1 中使用 tensorflow
我已经为 Cuda 10.1 安装了 cuda10.1 和 CuDNN 7.5
当启动这个命令“nvcc -V”来检查我的安装时,我有这个窗口提示
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Fri_Feb__8_19:08:26_Pacific_Standard_Time_2019
Cuda compilation tools, release 10.1, V10.1.105
但是当我在 jupyter notebook 上导入 tensorflow 时,出现了这个错误
import tensorflow as tf;
错误:
ImportError: Could not find 'cudart64_100.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 10.0 from this URL: https://developer.nvidia.com/cuda-90-download-archive
我该怎么做才能让它工作? .提前感谢您的帮助
【问题讨论】:
-
为什么不直接使用 tensorflow 网站上推荐的 10.0?
-
因为 cuda 10 出现此错误:“找不到受支持的 Visual Studio 版本。CUDA Toolkit 的某些组件将无法正常工作。请先安装 Visual Studio 以获得完整功能”“
-
我刚刚用最新版本的visual studio重新安装了tensorflow和cuda 10.0。从记忆中,它会警告您并非所有功能都可以正常工作(可能是nvidia NSight)。它不会阻止您继续安装。你试过了吗?
-
我从现在开始尝试
-
我用 c++ 安装了 Visual Studio 2017 时正确
标签: python tensorflow jupyter-notebook