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

environment creation fails for lietorch #8

Open
JKBehrens opened this issue Feb 13, 2023 · 2 comments
Open

environment creation fails for lietorch #8

JKBehrens opened this issue Feb 13, 2023 · 2 comments

Comments

@JKBehrens
Copy link

Hi,

I tried to install your code, and conda returned this error. I guess I can clone and install lietorch myself, but I wanted to leave this not for you.

Best,
Jan

Pip subprocess error:
  Running command git clone --quiet https://github.com/princeton-vl/lietorch.git /tmp/pip-req-build-u11m6szo
  Running command git submodule update --init --recursive -q
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-req-build-u11m6szo/setup.py", line 16, in <module>
          CUDAExtension('lietorch_backends',
        File "/home/behrejan/.conda/envs/mybase/envs/cir/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 867, in CUDAExtension
          library_dirs += library_paths(cuda=True)
        File "/home/behrejan/.conda/envs/mybase/envs/cir/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 975, in library_paths
          if (not os.path.exists(_join_cuda_home(lib_dir)) and
        File "/home/behrejan/.conda/envs/mybase/envs/cir/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1982, 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.
      [end of output]

@francescosarno
Copy link

francescosarno commented May 5, 2023

I have the same issue, did you manage to solve?

@mqtjean
Copy link

mqtjean commented Sep 22, 2023

Hi,

The error here is that your CUDA_HOME environment is not set.

Do which nvcc

if you don't have nvcc, install cudatoolkit with the same version you build pytorch with

then redo which nvcc

Then if the path is for example : /home/usr/anaconda/env_name/bin/nvcc

Do : export CUDA_HOME=/home/usr/anaconda/env_name/ the path without bin/nvcc

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

3 participants