Oscar icon indicating copy to clipboard operation
Oscar copied to clipboard

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

Open PepZhu opened this issue 3 years ago • 3 comments

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!

PepZhu avatar Jul 17 '21 14:07 PepZhu

facing the same issue. could you resolve it?

aka-95 avatar Sep 10 '21 06:09 aka-95

facing the same issue. could you resolve it?

noooo

PepZhu avatar Oct 29 '21 08:10 PepZhu

@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:

  • Installing CUDA Toolkit 10.0 from here
  • Add PATH and LD_LIBRARY_PATH within .bashrc file
export PATH="/usr/local/cuda-10.0/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH"

You can test out by nvcc --version

To carry on installing apex for Oscar:

  • Checking out a specific commit git checkout f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0
  • Finally, running python setup.py install --cuda_ext --cpp_ext

zamanmub avatar Nov 04 '21 19:11 zamanmub