tf-faster-rcnn icon indicating copy to clipboard operation
tf-faster-rcnn copied to clipboard

OSError: The nvcc binary could not be located in your $PATH. Either add it to your path, or set $CUDAHOME

Open 1451595897 opened this issue 6 years ago • 10 comments

If I make in the lib folder(in google colab),it shows that “OSError: The nvcc binary could not be located in your $PATH. Either add it to your path, or set $CUDAHOME.”I don't know how to deal with this problem? image

1451595897 avatar Oct 05 '18 08:10 1451595897

You need to add the cuda path to bashrc. export CUDA_HOME=/usr/local/cuda-8.0 export LD_LIBRARY_PATH=${CUDA_HOME}/lib64

PATH=${CUDA_HOME}/bin:${PATH} export PATH

rnsandeep avatar Oct 05 '18 08:10 rnsandeep

However,I add the cuda path to bashrc later,this problem still exists. @rnsandeep image

1451595897 avatar Oct 05 '18 12:10 1451595897

You can look at this thread. https://github.com/rbgirshick/py-faster-rcnn/issues/123

rnsandeep avatar Oct 05 '18 13:10 rnsandeep

Thank you. I can use CPU to run this demo in google colab when I modify the setup.py and the nms_wrapper.py. But I still want to use GPU. I am unable to fix it. @rnsandeep

1451595897 avatar Oct 08 '18 13:10 1451595897

For working with gpu you need to install nvidia driver and cuda properly. and then do make. Please let me know which gpu you are using and linux environment so that i can refer which version to install.

rnsandeep avatar Oct 08 '18 16:10 rnsandeep

Have you solved this problem? i meet the same problem ,could you please tell me how to sovle it

LP308210365 avatar Apr 19 '19 07:04 LP308210365

I also meet this problem, just because i install the tensorflow in the virtual environment by the command “conda install tensorflow-gpu=×** ",and it also install part of cuda (cudatoolkit) corresponding to my tensorflow。That means there is not nvcc in my computer (I never install cuda in my computer ) , so i meet the problem above, to solve it i install the complete cuda ,and set the PATH .just OK~

psychiatrist-xsd avatar Aug 30 '19 02:08 psychiatrist-xsd

thank you very much. i will try it later

---Original--- From: "shidunxu"<[email protected]> Date: Fri, Aug 30, 2019 10:16 AM To: "endernewton/tf-faster-rcnn"<[email protected]>; Cc: "Comment"<[email protected]>;"LP308210365"<[email protected]>; Subject: Re: [endernewton/tf-faster-rcnn] OSError: The nvcc binary could not be located in your $PATH. Either add it to your path, or set $CUDAHOME (#391)

I also meet this problem, just because i install the tensorflow in the virtual environment by the command “conda install tensorflow-gpu=×** ",and it also install part of cuda (cudatoolkit) corresponding to my tensorflow。That means there is not nvcc in my computer (I never install cuda in my computer ) , so i meet the problem above, to solve it i install the complete cuda ,and set the PATH .just OK~

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

LP308210365 avatar Aug 30 '19 08:08 LP308210365

I also meet this problem, just because i install the tensorflow in the virtual environment by the command “conda install tensorflow-gpu=×** ",and it also install part of cuda (cudatoolkit) corresponding to my tensorflow。That means there is not nvcc in my computer (I never install cuda in my computer ) , so i meet the problem above, to solve it i install the complete cuda ,and set the PATH .just OK~

is your GPU from either intel or Nvidia. My GPU is from Intel, can I istall cuda?

zhangfengjiao-zju avatar Dec 11 '20 13:12 zhangfengjiao-zju

@zhangfengjiao-zju I think you cannot. I have the same issue as you do

federiconuta avatar Jan 25 '21 13:01 federiconuta