import TensorFlow: [WinError 126] The specified module could not be found









up vote
0
down vote

favorite












I would like to learn to use TensorFlow but, of course, I am not even able to install it!



These are the info about my case:



  • Python 3.6 64-bit

  • Intel(R) HD Graphics 520

  • Intel i7

  • Windows 7

  • numpy 1.14.1

I have followed these steps:



  1. On cmd: C:> pip3 install --upgrade tensorflow-gpu

  2. On Python: import tensorflow

But I get the following error:



Traceback (most recent call last):
File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonplatformself_check.py", line 62, in preload_check
ctypes.WinDLL(build_info.nvcuda_dll_name)
File "C:UsersVESAppDataLocalProgramsPythonPython36libctypes__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import tensorflow
File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflow__init__.py", line 24, in <module>
from tensorflow.python import *
File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpython__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonpywrap_tensorflow.py", line 30, in <module>
self_check.preload_check()
File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonplatformself_check.py", line 70, in preload_check
% build_info.nvcuda_dll_name)
ImportError: Could not find 'nvcuda.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Typically it is installed in 'C:WindowsSystem32'. If it is not present, ensure that you have a CUDA-capable GPU with the correct driver installed.









share|improve this question



























    up vote
    0
    down vote

    favorite












    I would like to learn to use TensorFlow but, of course, I am not even able to install it!



    These are the info about my case:



    • Python 3.6 64-bit

    • Intel(R) HD Graphics 520

    • Intel i7

    • Windows 7

    • numpy 1.14.1

    I have followed these steps:



    1. On cmd: C:> pip3 install --upgrade tensorflow-gpu

    2. On Python: import tensorflow

    But I get the following error:



    Traceback (most recent call last):
    File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonplatformself_check.py", line 62, in preload_check
    ctypes.WinDLL(build_info.nvcuda_dll_name)
    File "C:UsersVESAppDataLocalProgramsPythonPython36libctypes__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
    OSError: [WinError 126] The specified module could not be found

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "<pyshell#0>", line 1, in <module>
    import tensorflow
    File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflow__init__.py", line 24, in <module>
    from tensorflow.python import *
    File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpython__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
    File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonpywrap_tensorflow.py", line 30, in <module>
    self_check.preload_check()
    File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonplatformself_check.py", line 70, in preload_check
    % build_info.nvcuda_dll_name)
    ImportError: Could not find 'nvcuda.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Typically it is installed in 'C:WindowsSystem32'. If it is not present, ensure that you have a CUDA-capable GPU with the correct driver installed.









    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I would like to learn to use TensorFlow but, of course, I am not even able to install it!



      These are the info about my case:



      • Python 3.6 64-bit

      • Intel(R) HD Graphics 520

      • Intel i7

      • Windows 7

      • numpy 1.14.1

      I have followed these steps:



      1. On cmd: C:> pip3 install --upgrade tensorflow-gpu

      2. On Python: import tensorflow

      But I get the following error:



      Traceback (most recent call last):
      File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonplatformself_check.py", line 62, in preload_check
      ctypes.WinDLL(build_info.nvcuda_dll_name)
      File "C:UsersVESAppDataLocalProgramsPythonPython36libctypes__init__.py", line 348, in __init__
      self._handle = _dlopen(self._name, mode)
      OSError: [WinError 126] The specified module could not be found

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "<pyshell#0>", line 1, in <module>
      import tensorflow
      File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflow__init__.py", line 24, in <module>
      from tensorflow.python import *
      File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpython__init__.py", line 49, in <module>
      from tensorflow.python import pywrap_tensorflow
      File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonpywrap_tensorflow.py", line 30, in <module>
      self_check.preload_check()
      File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonplatformself_check.py", line 70, in preload_check
      % build_info.nvcuda_dll_name)
      ImportError: Could not find 'nvcuda.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Typically it is installed in 'C:WindowsSystem32'. If it is not present, ensure that you have a CUDA-capable GPU with the correct driver installed.









      share|improve this question















      I would like to learn to use TensorFlow but, of course, I am not even able to install it!



      These are the info about my case:



      • Python 3.6 64-bit

      • Intel(R) HD Graphics 520

      • Intel i7

      • Windows 7

      • numpy 1.14.1

      I have followed these steps:



      1. On cmd: C:> pip3 install --upgrade tensorflow-gpu

      2. On Python: import tensorflow

      But I get the following error:



      Traceback (most recent call last):
      File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonplatformself_check.py", line 62, in preload_check
      ctypes.WinDLL(build_info.nvcuda_dll_name)
      File "C:UsersVESAppDataLocalProgramsPythonPython36libctypes__init__.py", line 348, in __init__
      self._handle = _dlopen(self._name, mode)
      OSError: [WinError 126] The specified module could not be found

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "<pyshell#0>", line 1, in <module>
      import tensorflow
      File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflow__init__.py", line 24, in <module>
      from tensorflow.python import *
      File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpython__init__.py", line 49, in <module>
      from tensorflow.python import pywrap_tensorflow
      File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonpywrap_tensorflow.py", line 30, in <module>
      self_check.preload_check()
      File "C:UsersVESAppDataLocalProgramsPythonPython36libsite-packagestensorflowpythonplatformself_check.py", line 70, in preload_check
      % build_info.nvcuda_dll_name)
      ImportError: Could not find 'nvcuda.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Typically it is installed in 'C:WindowsSystem32'. If it is not present, ensure that you have a CUDA-capable GPU with the correct driver installed.






      python tensorflow cuda






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 14 at 10:55









      Batsu

      1,9201527




      1,9201527










      asked Mar 14 at 9:37









      Stefano

      11118




      11118






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          To run tensorflow with GPU support you'll need a NVIDIA graphic card and the CUDA libraries installed (see requirements here), unfortunately your Intel(R) HD Graphics 520 won't do.



          You can settle for the CPU version (pip3 install --upgrade tensorflow), which is still good to start learning.



          UPDATE: another solution is to use the online service Google Colab, which allows you to borrow a GPU from Google's cloud infrastructure for learning purposes.






          share|improve this answer






















          • man.. you have solved my sufferings! I have settled the CPU version and now it works. thanks!!
            – Stefano
            Mar 14 at 9:57










          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',
          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%2f49274151%2fimport-tensorflow-winerror-126-the-specified-module-could-not-be-found%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          To run tensorflow with GPU support you'll need a NVIDIA graphic card and the CUDA libraries installed (see requirements here), unfortunately your Intel(R) HD Graphics 520 won't do.



          You can settle for the CPU version (pip3 install --upgrade tensorflow), which is still good to start learning.



          UPDATE: another solution is to use the online service Google Colab, which allows you to borrow a GPU from Google's cloud infrastructure for learning purposes.






          share|improve this answer






















          • man.. you have solved my sufferings! I have settled the CPU version and now it works. thanks!!
            – Stefano
            Mar 14 at 9:57














          up vote
          2
          down vote



          accepted










          To run tensorflow with GPU support you'll need a NVIDIA graphic card and the CUDA libraries installed (see requirements here), unfortunately your Intel(R) HD Graphics 520 won't do.



          You can settle for the CPU version (pip3 install --upgrade tensorflow), which is still good to start learning.



          UPDATE: another solution is to use the online service Google Colab, which allows you to borrow a GPU from Google's cloud infrastructure for learning purposes.






          share|improve this answer






















          • man.. you have solved my sufferings! I have settled the CPU version and now it works. thanks!!
            – Stefano
            Mar 14 at 9:57












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          To run tensorflow with GPU support you'll need a NVIDIA graphic card and the CUDA libraries installed (see requirements here), unfortunately your Intel(R) HD Graphics 520 won't do.



          You can settle for the CPU version (pip3 install --upgrade tensorflow), which is still good to start learning.



          UPDATE: another solution is to use the online service Google Colab, which allows you to borrow a GPU from Google's cloud infrastructure for learning purposes.






          share|improve this answer














          To run tensorflow with GPU support you'll need a NVIDIA graphic card and the CUDA libraries installed (see requirements here), unfortunately your Intel(R) HD Graphics 520 won't do.



          You can settle for the CPU version (pip3 install --upgrade tensorflow), which is still good to start learning.



          UPDATE: another solution is to use the online service Google Colab, which allows you to borrow a GPU from Google's cloud infrastructure for learning purposes.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 10 at 3:55









          Pang

          6,8301563101




          6,8301563101










          answered Mar 14 at 9:42









          Batsu

          1,9201527




          1,9201527











          • man.. you have solved my sufferings! I have settled the CPU version and now it works. thanks!!
            – Stefano
            Mar 14 at 9:57
















          • man.. you have solved my sufferings! I have settled the CPU version and now it works. thanks!!
            – Stefano
            Mar 14 at 9:57















          man.. you have solved my sufferings! I have settled the CPU version and now it works. thanks!!
          – Stefano
          Mar 14 at 9:57




          man.. you have solved my sufferings! I have settled the CPU version and now it works. thanks!!
          – Stefano
          Mar 14 at 9:57

















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f49274151%2fimport-tensorflow-winerror-126-the-specified-module-could-not-be-found%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

          How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

          Syphilis

          Darth Vader #20