microsoft / Oscar

Oscar and VinVL
MIT License
1.04k stars 251 forks source link

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

Open PepZhu opened 3 years ago

PepZhu commented 3 years ago

when I install the apex by runing "python setup.py install --cuda_ext --cpp_ext", there is an error "FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/cuda/bin/nvcc': '/usr/local/cuda/bin/nvcc'".

Cloud you help me? Thanks a lot!

aka-95 commented 2 years ago

facing the same issue. could you resolve it?

PepZhu commented 2 years ago

facing the same issue. could you resolve it?

noooo

zamanmub commented 2 years ago

@aka-95 If you're installing cudatoolkit=10.0 using conda, it doesn't come with nvcc compiler. See this. You might need to get the CUDA toolit 10.0 packaged by NVIDIA for the nvcc compiler.

I could resolve the problem in the following way.

To find have the right nvcc version:

To carry on installing apex for Oscar: