NVIDIA / apex

A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch
BSD 3-Clause "New" or "Revised" License
8.21k stars 1.36k forks source link

Strange FileNotFoundError #500

Open HeathHose opened 4 years ago

HeathHose commented 4 years ago

When use pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./ for installation, raise an error FileNotFoundError: [Errno 2] No such file or directory: ':/usr/local/cuda-9.0/bin/nvcc'

What is :/usr/local/cuda-9.0/bin/nvcc? I mean : is strange and can ubuntu not find :/usr/local/cuda-9.0/bin/nvcc, not /usr/local/cuda-9.0/bin/nvcc?

Meanwhile, I have installed nvcc9.0

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176

We can see: -rwxr-xr-x 1 dx dx 189888 Sep 20 19:58 /usr/local/cuda-9.0/bin/nvcc*

ptrblck commented 4 years ago

Hi @HeathHose,

could you check your $PATH and make sure the : wasn't accidentally added? What does which nvcc return?