deep-high-resolution-net.pytorch icon indicating copy to clipboard operation
deep-high-resolution-net.pytorch copied to clipboard

cd nms; python setup_linux.py build_ext --inplace; rm -rf build; cd ../../ Traceback (most recent call last): File "setup_linux.py", line 56, in <module> CUDA = locate_cuda() File "setup_linux.py", line 44, in locate_cuda raise EnvironmentError('The nvcc binary could not be ' OSError: The nvcc binary could not be located in your $PATH. Either add it to your path, or set $CUDAHOME

Open henbucuoshanghai opened this issue 5 years ago • 4 comments

Traceback (most recent call last): File "setup_linux.py", line 56, in CUDA = locate_cuda() File "setup_linux.py", line 44, in locate_cuda raise EnvironmentError('The nvcc binary could not be ' OSError: The nvcc binary could not be located in your $PATH. Either add it to your path, or set $CUDAHOME

henbucuoshanghai avatar Nov 20 '19 09:11 henbucuoshanghai

i miss the same error. Could you please tell me how to solve it?

GuHuangAI avatar May 18 '20 13:05 GuHuangAI

I solved the problem by reinstalling CUDA10.0,hope its useful

GuHuangAI avatar May 19 '20 06:05 GuHuangAI

I encountered this problem as well. Here is the solution

Add the following lines to your ~/.bashrc (change the cuda version)

export CUDAHOME=/usr/local/cuda-10.0 export LD_LIBRARY_PATH=${CUDAHOME}/lib64 PATH=${CUDAHOME}/bin:${PATH} export PATH

maxmarkov avatar Dec 27 '20 19:12 maxmarkov

I solved the problem. Here is the solution

$ sudo apt install nvidia-cuda-toolkit

shiym2000 avatar Mar 31 '22 12:03 shiym2000