Oscar
Oscar copied to clipboard
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/cuda/bin/nvcc': '/usr/local/cuda/bin/nvcc'
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!
facing the same issue. could you resolve it?
facing the same issue. could you resolve it?
noooo
@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