解决 OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
报错
在conda虚拟环境中,已经安装了torch、torchvision、torchaudio等,且版本与cuda版本适配;显示没设置CUDA_HOME。
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
解决
conda install -c conda-forge cudatoolkit-dev
参考
https://github.com/oobabooga/text-generation-webui/issues/416
https://github.com/conda/conda/issues/7757
https://blog.csdn.net/weixin_44832383/article/details/121289383