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

[Bug] error: [Errno 2] No such file or directory: '/bin/nvcc' #3217

Open
2 tasks done
gpastal24 opened this issue Dec 23, 2024 · 3 comments
Open
2 tasks done

[Bug] error: [Errno 2] No such file or directory: '/bin/nvcc' #3217

gpastal24 opened this issue Dec 23, 2024 · 3 comments

Comments

@gpastal24
Copy link

Prerequisite

Environment

Pytorch -> pip
CUDA_HOME -> ~/miniconda3/envs/env_name/lib/python3.10/site-packages/nvidia

Reproduces the problem - code sample

CUDA_HOME=~/miniconda3/envs/env_name/lib/python3.10/site-packages/nvidia pip install mmcv-full

Reproduces the problem - command or script

CUDA_HOME=~/miniconda3/envs/env_name/lib/python3.10/site-packages/nvidia mim install mmcv-full

Reproduces the problem - error message

error: [Errno 2] No such file or directory: '~/miniconda3/envs/env_name/lib/python3.10/site-packages/nvidia/bin/nvcc'

Additional information

Hello I am trying to install mccv in a virtual environment.
I set the CUDA_HOME env variable before installing mmcv.
The CUDA path in this case in the one that is shipped with torch, not the one installed in the OS.
I cannot progress since nvcc is needed, why is that? I thought the basic cuda library shipped with torch is sufficient for pretty much anything CV related.
Thanks

@samskalicky
Copy link

Hi @gpastal24, the CUDA path to nvcc is usually installed when you install Nvidia's CUDA tools at /usr/local/cuda/bin/nvcc. Its not installed as part of PyTorch -- that just has pre-compiled libraries to run on GPUs.

@gpastal24
Copy link
Author

@samskalicky I dont get why we need nvcc. Are we compiling cuda kernels or what?

@samskalicky
Copy link

samskalicky commented Dec 30, 2024

Sorry, im new to MMCV. But it looks like on PyPI mmcv-full is a source distribution so it needs to be built (its not a prebuilt wheel) https://pypi.org/project/mmcv-full/1.7.2/#files

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

2 participants