Python Tensorflow GPU - 导入错误:找不到“nvcuda.dll”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/49397373/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Tensorflow GPU - ImportError: Could not find 'nvcuda.dll'
提问by Noman Niazi
ImportError: Could not find 'nvcuda.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Typically it is installed in 'C:\Windows\System32'. If it is not present, ensure that you have a CUDA-capable GPU with the correct driver installed.
导入错误:找不到“nvcuda.dll”。TensorFlow 要求将此 DLL 安装在 %PATH% 环境变量中命名的目录中。通常它安装在“C:\Windows\System32”中。如果它不存在,请确保您有一个支持 CUDA 的 GPU,并安装了正确的驱动程序。
please solve this error i am doing FYP
请解决这个错误我正在做 FYP
回答by u10130754
First of all, my computer does not have an Nvidia card. So I can not install CUDA driver. I downloaded nvcuda.dll
and executed
首先,我的电脑没有Nvidia卡。所以我无法安装CUDA驱动程序。我下载nvcuda.dll
并执行
regsvr32 C:\Windows\System32\nvcuda.dll
instruction, they make a fire so as to compile all TensorFlow code that note
指令,他们生火以编译所有注意到的 TensorFlow 代码
ImportError: Could not find 'nvcuda.dll'.
导入错误:找不到“nvcuda.dll”。
Anyway, please reinstall your TensorFlow:
无论如何,请重新安装您的 TensorFlow:
pip uninstall protobuf
pip uninstall tensorflow
and then
进而
pip install protobuf
pip install tensorflow
回答by Dinusha Dilanka
The error because , your system couldn't find CUDA enable for tensorflow-GPU version. Please refer link for installing tensorflow-GPU in here. If you want to access GPU version you have to install CUDA toolkit first. Make sure that when you are installing CUDA toolkit and cuDNN should support to your tensrflow version.
错误是因为,您的系统找不到 tensorflow-GPU 版本的 CUDA 启用。请参阅此处安装 tensorflow-GPU 的链接。如果您想访问 GPU 版本,您必须先安装 CUDA 工具包。确保在安装 CUDA 工具包和 cuDNN 时应支持您的 tensrflow 版本。