nvcc compiler not found on $PATH










0















I am getting the following error with theano:




ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check
your nvcc installation and try again.




I've tried every solution given by previous questions. Running nvcc -V returns the following:



nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85


And which nvcc returns the following:



/usr/local/cuda-9.1/bin//nvcc


I've also confirmed I have an nvcc file in /usr/local/cuda-9.1/bin.



I've ran the following commands to ensure nvcc can be found:



export PATH=/usr/local/cuda-9.1/bin/:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64:$LD_LIBRARY_PATH
exec bash


I've confirmed the nvcc location is definitely in $PATH as running echo $PATH returns the following:



/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda-9.1/bin/:/usr/local/cuda-9.1/bin/:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda/bin/:/home/paperspace/src/torch/install/bin:/home/paperspace/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-9-oracle/bin:/usr/lib/jvm/java-9-oracle/db/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin


Also if I open a python console and run import os; print(os.environ["PATH"]) I get the following (same thing):



/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda-9.1/bin/:/usr/local/cuda-9.1/bin/:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda/bin/:/home/paperspace/src/torch/install/bin:/home/paperspace/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-9-oracle/bin:/usr/lib/jvm/java-9-oracle/db/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin


My .theanorc file in /home/paperspace is as follows:



[global]
device = cuda
floatX = float32
[cuda]
root = /usr/local/cuda-9.1









share|improve this question




























    0















    I am getting the following error with theano:




    ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check
    your nvcc installation and try again.




    I've tried every solution given by previous questions. Running nvcc -V returns the following:



    nvcc: NVIDIA (R) Cuda compiler driver
    Copyright (c) 2005-2017 NVIDIA Corporation
    Built on Fri_Nov__3_21:07:56_CDT_2017
    Cuda compilation tools, release 9.1, V9.1.85


    And which nvcc returns the following:



    /usr/local/cuda-9.1/bin//nvcc


    I've also confirmed I have an nvcc file in /usr/local/cuda-9.1/bin.



    I've ran the following commands to ensure nvcc can be found:



    export PATH=/usr/local/cuda-9.1/bin/:$PATH
    export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64:$LD_LIBRARY_PATH
    exec bash


    I've confirmed the nvcc location is definitely in $PATH as running echo $PATH returns the following:



    /home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda-9.1/bin/:/usr/local/cuda-9.1/bin/:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda/bin/:/home/paperspace/src/torch/install/bin:/home/paperspace/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-9-oracle/bin:/usr/lib/jvm/java-9-oracle/db/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin


    Also if I open a python console and run import os; print(os.environ["PATH"]) I get the following (same thing):



    /home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda-9.1/bin/:/usr/local/cuda-9.1/bin/:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda/bin/:/home/paperspace/src/torch/install/bin:/home/paperspace/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-9-oracle/bin:/usr/lib/jvm/java-9-oracle/db/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin


    My .theanorc file in /home/paperspace is as follows:



    [global]
    device = cuda
    floatX = float32
    [cuda]
    root = /usr/local/cuda-9.1









    share|improve this question


























      0












      0








      0








      I am getting the following error with theano:




      ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check
      your nvcc installation and try again.




      I've tried every solution given by previous questions. Running nvcc -V returns the following:



      nvcc: NVIDIA (R) Cuda compiler driver
      Copyright (c) 2005-2017 NVIDIA Corporation
      Built on Fri_Nov__3_21:07:56_CDT_2017
      Cuda compilation tools, release 9.1, V9.1.85


      And which nvcc returns the following:



      /usr/local/cuda-9.1/bin//nvcc


      I've also confirmed I have an nvcc file in /usr/local/cuda-9.1/bin.



      I've ran the following commands to ensure nvcc can be found:



      export PATH=/usr/local/cuda-9.1/bin/:$PATH
      export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64:$LD_LIBRARY_PATH
      exec bash


      I've confirmed the nvcc location is definitely in $PATH as running echo $PATH returns the following:



      /home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda-9.1/bin/:/usr/local/cuda-9.1/bin/:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda/bin/:/home/paperspace/src/torch/install/bin:/home/paperspace/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-9-oracle/bin:/usr/lib/jvm/java-9-oracle/db/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin


      Also if I open a python console and run import os; print(os.environ["PATH"]) I get the following (same thing):



      /home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda-9.1/bin/:/usr/local/cuda-9.1/bin/:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda/bin/:/home/paperspace/src/torch/install/bin:/home/paperspace/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-9-oracle/bin:/usr/lib/jvm/java-9-oracle/db/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin


      My .theanorc file in /home/paperspace is as follows:



      [global]
      device = cuda
      floatX = float32
      [cuda]
      root = /usr/local/cuda-9.1









      share|improve this question
















      I am getting the following error with theano:




      ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check
      your nvcc installation and try again.




      I've tried every solution given by previous questions. Running nvcc -V returns the following:



      nvcc: NVIDIA (R) Cuda compiler driver
      Copyright (c) 2005-2017 NVIDIA Corporation
      Built on Fri_Nov__3_21:07:56_CDT_2017
      Cuda compilation tools, release 9.1, V9.1.85


      And which nvcc returns the following:



      /usr/local/cuda-9.1/bin//nvcc


      I've also confirmed I have an nvcc file in /usr/local/cuda-9.1/bin.



      I've ran the following commands to ensure nvcc can be found:



      export PATH=/usr/local/cuda-9.1/bin/:$PATH
      export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64:$LD_LIBRARY_PATH
      exec bash


      I've confirmed the nvcc location is definitely in $PATH as running echo $PATH returns the following:



      /home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda-9.1/bin/:/usr/local/cuda-9.1/bin/:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda/bin/:/home/paperspace/src/torch/install/bin:/home/paperspace/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-9-oracle/bin:/usr/lib/jvm/java-9-oracle/db/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin


      Also if I open a python console and run import os; print(os.environ["PATH"]) I get the following (same thing):



      /home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda-9.1/bin/:/usr/local/cuda-9.1/bin/:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/cuda/bin/:/home/paperspace/src/torch/install/bin:/home/paperspace/bin:/home/paperspace/anaconda3/bin:/home/paperspace/src/torch/install/bin:/home/paperspace/src/torch/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-9-oracle/bin:/usr/lib/jvm/java-9-oracle/db/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/cuda/bin


      My .theanorc file in /home/paperspace is as follows:



      [global]
      device = cuda
      floatX = float32
      [cuda]
      root = /usr/local/cuda-9.1






      ubuntu-16.04 theano nvcc






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 16 '18 at 6:14









      talonmies

      59.8k17131199




      59.8k17131199










      asked Nov 16 '18 at 5:41









      ZhouWZhouW

      350426




      350426






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53332070%2fnvcc-compiler-not-found-on-path%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53332070%2fnvcc-compiler-not-found-on-path%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Top Tejano songwriter Luis Silva dead of heart attack at 64

          政党

          天津地下鉄3号線