Solution to above issue!
As cuda installed through anaconda is not the entire package. Please install cuda drivers manually from Nvidia Website [ https://developer.nvidia.com/cuda-downloads ]
After installation of drivers, pytorch would be able to access the cuda path. You can test the cuda path using below sample code. Problem resolved!!!
CHECK INSTALLATION:文章来源:https://www.toymoban.com/news/detail-602567.html
import os
print(os.environ.get('CUDA_PATH'))
OUTPUT:文章来源地址https://www.toymoban.com/news/detail-602567.html
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1
到了这里,关于[深度学习]OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!