Closed Charlie-Steer closed 2 weeks ago
Ok so for some reason the CUDA_HOME
env var isn't set by the cuda install process in your scenario, but it is required for loading CPP extensions like our node does.
I think this thread might clear some things up: https://github.com/conda/conda/issues/7757
It's a simple case of pointing the CUDA_HOME
var to your CUDA homedir, but I'm not really sure where that is for you.
I'd also check if cudatoolkit
is installed, and try installing it if not.
Upon running ComfyUI I'm getting this error: "OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root."
This is on Linux Mint, but I got the same issue when trying previously on Windows 10. I tried reinstalling the python "torch" module, as it seems to be responsible for installing CUDA if I'm not mistaken. I tried installing torch with both commands provided in the ComfyUI repo for both stable and nightly, but none fixed the issue:
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121
Error Log:
It only seems an issue with this particular node: