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

Cannot run build command following install.md "CUDA_HOME environment variable is not set" #1208

Open
autotel opened this issue Apr 5, 2024 · 1 comment

Comments

@autotel
Copy link

autotel commented Apr 5, 2024

I am following Install.md.
I have very little experience with python.

During the procedure I had to add some steps, as the setup would complain of missing packages:

conda install torch
conda install numpy

Also conda could not find the package pytorch-cuda=11.3 (neither variations of it, such as conda install pytorch::pytorch, so I installed this package using pip install pytorch-cuda. Probably my setup was flimsy at this point.

I get 100% stuck when I run python setup.py build develop with the following result:

File "/[...]/miniconda3/envs/alphapose/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 2230, 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.

How should we troubleshoot this?

OS: Ubuntu 22.04.4 LTS 64 bits
Graphics:  NVIDIA GeForce GTX 1050
CPU: Intel® Core™ i7-7700HQ CPU @ 2.80GHz × 8
@autotel
Copy link
Author

autotel commented Apr 19, 2024

My computer got stolen, hence the answers will not be anymore helpful to me specifically anymore

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

1 participant