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

FileNotFoundError: [Errno 2] No such file or directory: ':/usr/local/cuda/bin/nvcc' #5511

Closed
1148514800 opened this issue May 9, 2024 · 3 comments
Assignees
Labels
build Improvements to the build and testing systems.

Comments

@1148514800
Copy link

When i pip install deepspeed, it seems to have a bug. How can i solve it.

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-sk7po78o/deepspeed_d20b3db44cb14797a404b2aa6363909d/setup.py", line 100, in
cuda_major_ver, cuda_minor_ver = installed_cuda_version()
File "/tmp/pip-install-sk7po78o/deepspeed_d20b3db44cb14797a404b2aa6363909d/op_builder/builder.py", line 52, in installed_cuda_version
output = subprocess.check_output([cuda_home + "/bin/nvcc", "-V"], universal_newlines=True)
File "/home/hpclp/anaconda3/envs/qwen/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/home/hpclp/anaconda3/envs/qwen/lib/python3.8/subprocess.py", line 493, in run
with Popen(*popenargs, **kwargs) as process:
File "/home/hpclp/anaconda3/envs/qwen/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/hpclp/anaconda3/envs/qwen/lib/python3.8/subprocess.py", line 1720, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ':/usr/local/cuda/bin/nvcc'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@1148514800 1148514800 added bug Something isn't working compression labels May 9, 2024
@loadams loadams self-assigned this May 14, 2024
@loadams loadams added build Improvements to the build and testing systems. and removed bug Something isn't working compression labels May 14, 2024
@loadams
Copy link
Contributor

loadams commented May 14, 2024

Hi @1148514800 - do you have nvcc installed? Are you able to run which nvcc or nvcc --version

@1148514800
Copy link
Author

Hi, I can run which nvcc. I have solved this problem by export CUDA_HOME=/usr/local/cuda. But I still want to thank you!

@loadams
Copy link
Contributor

loadams commented May 15, 2024

Thanks @1148514800 - that's good, I'm glad the issue is resolved and sorry for the delay in replying. I'll close the issue now but if you hit any others, please feel free to open a new issue.

@loadams loadams closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Improvements to the build and testing systems.
Projects
None yet
Development

No branches or pull requests

2 participants