Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"OSError: CUDA_HOME environment variable is not set." during setup installation #104

Open
buemi opened this issue Jun 1, 2023 · 3 comments

Comments

@buemi
Copy link

buemi commented Jun 1, 2023

Hi,
I would like to test the DROID-SLAM on my system (Windows 10+Anaconda) but when I launch the following statement:

$ python setup.py install

I receive the following error:

Traceback (most recent call last):
File "C:\SLAM\DROID-SLAM-main\setup.py", line 10, in
CUDAExtension('droid_backends',
File "C:\Anaconda3\envs\droidenv\lib\site-packages\torch\utils\cpp_extension.py", line 912, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "C:\Anaconda3\envs\droidenv\lib\site-packages\torch\utils\cpp_extension.py", line 1027, in library_paths
paths.append(_join_cuda_home(lib_dir))
File "C:\Anaconda3\envs\droidenv\lib\site-packages\torch\utils\cpp_extension.py", line 2035, in join_cuda_home
raise EnvironmentError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.

Any idea about how to solve it?

Regards

@zfj-mc
Copy link

zfj-mc commented Jul 28, 2023

This should be because your cuda has not configured environment variables, or your cuda has not been successfully installed

@Sebastian-Garcia
Copy link

The way that I fixed this was by actually installing the CUDA version (11.3) on my Windows machine. I think installing it through conda alone is not enough. For the specific version (11.3), I also needed Visual Studio 2019 installed for the command line tools

@manabukashima
Copy link

@Sebastian-Garcia Did you try to work droid-SLAM on Windows?Did you success it?Could you tell me the key of working it?
CUDA Version? and VC version ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants