how to fix tensorflow throwing dll loading error. python 3.7. windows 7Can anyone help me about what's wrong with importing tensorflow by the below error?Importing tensorflow not working when upgradedFailed to load the native TensorFlow runtime. Python 3.6 on Windows 10ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.(importing tensorflow error)Tensorflow installation issue: ImportError: DLL load failed with error code -1073741795ImportError: DLL load failed: The specified module could not be found … I found this error while installing tensorflow gpuI installed tensorflow and tensorflow_gpu on my Windows 10 64-bit OS with PyCharm and Python 3.7.2. But i get these errors while using tensorflowI get error when running this simple Tensorflow code. How can I solve this?Cannot get tensorflow to work. DLL load failed and DLL initialization routine failed

Should I "tell" my exposition or give it through dialogue?

Secure offsite backup, even in the case of hacker root access

Strat tremolo bar has tightening issues

Managing libraries hosted on EmacsWiki

What happens to foam insulation board after you pour concrete slab?

Using the present perfect tense for an action that will occur in the future

Cause of continuous spectral lines

Color text inside lstlisting

SF novella separating the dumb majority from the intelligent part of mankind

Is it recommended against to open-source the code of a webapp?

How to skip replacing first occurrence of a character in each line?

PL/SQL function to receive a number and return its binary format

Do any instruments not produce overtones?

"Living" organ bank is it practical?

Etymology of 'calcit(r)are'?

Implement Homestuck's Catenative Doomsday Dice Cascader

Bent spoke design wheels — feasible?

Why does VirtualBox crash macOS?

Will TSA allow me to carry a Continuous Positive Airway Pressure (CPAP)/sleep apnea device?

Last survivors from different time periods living together

How to translate “Me doing X” like in online posts?

Is it a problem that pull requests are approved without any comments

Why does this sentence use 东西?

Is it possible to (7 day) schedule sleep time of a hard drive?



how to fix tensorflow throwing dll loading error. python 3.7. windows 7


Can anyone help me about what's wrong with importing tensorflow by the below error?Importing tensorflow not working when upgradedFailed to load the native TensorFlow runtime. Python 3.6 on Windows 10ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.(importing tensorflow error)Tensorflow installation issue: ImportError: DLL load failed with error code -1073741795ImportError: DLL load failed: The specified module could not be found … I found this error while installing tensorflow gpuI installed tensorflow and tensorflow_gpu on my Windows 10 64-bit OS with PyCharm and Python 3.7.2. But i get these errors while using tensorflowI get error when running this simple Tensorflow code. How can I solve this?Cannot get tensorflow to work. DLL load failed and DLL initialization routine failed






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I wanted to get started using tensorflow.
i downloaded tensorflow-1.12.0-cp37-cp37m-win_amd64.whl and installed it via pip which worked.



but when i want to run the tensorflow tutorialcode it throws the following error:




Traceback (most recent call last):
File "C:UsersjohnsonPycharmProjectsData explorationData
explorationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py",
line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersjohnsonPycharmProjectsData explorationData
explorationvenvlibsite-
packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in

_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersjohnsonPycharmProjectsData explorationData
explorationvenvlibsite-
packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in
swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname,
description)
File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py", > line 242, in load_module
return load_dynamic(name, filename, file)
File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py", > line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed with error code -1073741795



During handling of the above exception, another exception occurred:



Traceback (most recent call last):
File "C:/Users/johnson/PycharmProjects/Data
exploration/MNISTTensorflow.py", line 4, in
import tensorflow as tf
File "C:UsersjohnsonPycharmProjectsData explorationData
explorationvenvlibsite-packagestensorflow__init__.py", line 24, in

from tensorflow.python import pywrap_tensorflow # pylint:
disable=unused-import
File "C:UsersjohnsonPycharmProjectsData explorationData
explorationvenvlibsite-packagestensorflowpython__init__.py", line 49,
in
from tensorflow.python import pywrap_tensorflow
File "C:UsersjohnsonPycharmProjectsData explorationData
explorationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py",
line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:UsersjohnsonPycharmProjectsData explorationData
explorationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py",
line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:UsersjohnsonPycharmProjectsData explorationData
explorationvenvlibsite-
packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in

_pywrap_tensorflow_internal = swig_import_helper()
File "C:UsersjohnsonPycharmProjectsData explorationData
explorationvenvlibsite-
packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in
swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname,
description)
File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py",
line 242, in load_module
return load_dynamic(name, filename, file)
File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py",
line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed with error code -1073741795



Failed to load the native TensorFlow runtime.



See https://www.tensorflow.org/install/errors



for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.



Process finished with exit code 1




i tried downloading and installing the 1.12.0 version. but when i want to add the package to the interpreter (via "settings" in pycharm), only the 1.13.1 version showed up (which was already uninstalled). that just adds to my confusion. as you surely can see, im new to python. i hope my questions are not too stupid. thank you!



i use:
- windos 7 (64bit)
- Python 3.7
- PyCharm community edition 2018.3.2
- GeForce GT 425m
- i5 CPU M580










share|improve this question




























    1















    I wanted to get started using tensorflow.
    i downloaded tensorflow-1.12.0-cp37-cp37m-win_amd64.whl and installed it via pip which worked.



    but when i want to run the tensorflow tutorialcode it throws the following error:




    Traceback (most recent call last):
    File "C:UsersjohnsonPycharmProjectsData explorationData
    explorationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py",
    line 58, in
    from tensorflow.python.pywrap_tensorflow_internal import *
    File "C:UsersjohnsonPycharmProjectsData explorationData
    explorationvenvlibsite-
    packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in

    _pywrap_tensorflow_internal = swig_import_helper()
    File "C:UsersjohnsonPycharmProjectsData explorationData
    explorationvenvlibsite-
    packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in
    swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname,
    description)
    File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py", > line 242, in load_module
    return load_dynamic(name, filename, file)
    File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py", > line 342, in load_dynamic
    return _load(spec)
    ImportError: DLL load failed with error code -1073741795



    During handling of the above exception, another exception occurred:



    Traceback (most recent call last):
    File "C:/Users/johnson/PycharmProjects/Data
    exploration/MNISTTensorflow.py", line 4, in
    import tensorflow as tf
    File "C:UsersjohnsonPycharmProjectsData explorationData
    explorationvenvlibsite-packagestensorflow__init__.py", line 24, in

    from tensorflow.python import pywrap_tensorflow # pylint:
    disable=unused-import
    File "C:UsersjohnsonPycharmProjectsData explorationData
    explorationvenvlibsite-packagestensorflowpython__init__.py", line 49,
    in
    from tensorflow.python import pywrap_tensorflow
    File "C:UsersjohnsonPycharmProjectsData explorationData
    explorationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py",
    line 74, in
    raise ImportError(msg)
    ImportError: Traceback (most recent call last):
    File "C:UsersjohnsonPycharmProjectsData explorationData
    explorationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py",
    line 58, in
    from tensorflow.python.pywrap_tensorflow_internal import *
    File "C:UsersjohnsonPycharmProjectsData explorationData
    explorationvenvlibsite-
    packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in

    _pywrap_tensorflow_internal = swig_import_helper()
    File "C:UsersjohnsonPycharmProjectsData explorationData
    explorationvenvlibsite-
    packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in
    swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname,
    description)
    File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py",
    line 242, in load_module
    return load_dynamic(name, filename, file)
    File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py",
    line 342, in load_dynamic
    return _load(spec)
    ImportError: DLL load failed with error code -1073741795



    Failed to load the native TensorFlow runtime.



    See https://www.tensorflow.org/install/errors



    for some common reasons and solutions. Include the entire stack trace
    above this error message when asking for help.



    Process finished with exit code 1




    i tried downloading and installing the 1.12.0 version. but when i want to add the package to the interpreter (via "settings" in pycharm), only the 1.13.1 version showed up (which was already uninstalled). that just adds to my confusion. as you surely can see, im new to python. i hope my questions are not too stupid. thank you!



    i use:
    - windos 7 (64bit)
    - Python 3.7
    - PyCharm community edition 2018.3.2
    - GeForce GT 425m
    - i5 CPU M580










    share|improve this question
























      1












      1








      1








      I wanted to get started using tensorflow.
      i downloaded tensorflow-1.12.0-cp37-cp37m-win_amd64.whl and installed it via pip which worked.



      but when i want to run the tensorflow tutorialcode it throws the following error:




      Traceback (most recent call last):
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py",
      line 58, in
      from tensorflow.python.pywrap_tensorflow_internal import *
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-
      packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in

      _pywrap_tensorflow_internal = swig_import_helper()
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-
      packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in
      swig_import_helper
      _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname,
      description)
      File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py", > line 242, in load_module
      return load_dynamic(name, filename, file)
      File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py", > line 342, in load_dynamic
      return _load(spec)
      ImportError: DLL load failed with error code -1073741795



      During handling of the above exception, another exception occurred:



      Traceback (most recent call last):
      File "C:/Users/johnson/PycharmProjects/Data
      exploration/MNISTTensorflow.py", line 4, in
      import tensorflow as tf
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-packagestensorflow__init__.py", line 24, in

      from tensorflow.python import pywrap_tensorflow # pylint:
      disable=unused-import
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-packagestensorflowpython__init__.py", line 49,
      in
      from tensorflow.python import pywrap_tensorflow
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py",
      line 74, in
      raise ImportError(msg)
      ImportError: Traceback (most recent call last):
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py",
      line 58, in
      from tensorflow.python.pywrap_tensorflow_internal import *
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-
      packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in

      _pywrap_tensorflow_internal = swig_import_helper()
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-
      packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in
      swig_import_helper
      _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname,
      description)
      File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py",
      line 242, in load_module
      return load_dynamic(name, filename, file)
      File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py",
      line 342, in load_dynamic
      return _load(spec)
      ImportError: DLL load failed with error code -1073741795



      Failed to load the native TensorFlow runtime.



      See https://www.tensorflow.org/install/errors



      for some common reasons and solutions. Include the entire stack trace
      above this error message when asking for help.



      Process finished with exit code 1




      i tried downloading and installing the 1.12.0 version. but when i want to add the package to the interpreter (via "settings" in pycharm), only the 1.13.1 version showed up (which was already uninstalled). that just adds to my confusion. as you surely can see, im new to python. i hope my questions are not too stupid. thank you!



      i use:
      - windos 7 (64bit)
      - Python 3.7
      - PyCharm community edition 2018.3.2
      - GeForce GT 425m
      - i5 CPU M580










      share|improve this question














      I wanted to get started using tensorflow.
      i downloaded tensorflow-1.12.0-cp37-cp37m-win_amd64.whl and installed it via pip which worked.



      but when i want to run the tensorflow tutorialcode it throws the following error:




      Traceback (most recent call last):
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py",
      line 58, in
      from tensorflow.python.pywrap_tensorflow_internal import *
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-
      packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in

      _pywrap_tensorflow_internal = swig_import_helper()
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-
      packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in
      swig_import_helper
      _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname,
      description)
      File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py", > line 242, in load_module
      return load_dynamic(name, filename, file)
      File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py", > line 342, in load_dynamic
      return _load(spec)
      ImportError: DLL load failed with error code -1073741795



      During handling of the above exception, another exception occurred:



      Traceback (most recent call last):
      File "C:/Users/johnson/PycharmProjects/Data
      exploration/MNISTTensorflow.py", line 4, in
      import tensorflow as tf
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-packagestensorflow__init__.py", line 24, in

      from tensorflow.python import pywrap_tensorflow # pylint:
      disable=unused-import
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-packagestensorflowpython__init__.py", line 49,
      in
      from tensorflow.python import pywrap_tensorflow
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py",
      line 74, in
      raise ImportError(msg)
      ImportError: Traceback (most recent call last):
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-packagestensorflowpythonpywrap_tensorflow.py",
      line 58, in
      from tensorflow.python.pywrap_tensorflow_internal import *
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-
      packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in

      _pywrap_tensorflow_internal = swig_import_helper()
      File "C:UsersjohnsonPycharmProjectsData explorationData
      explorationvenvlibsite-
      packagestensorflowpythonpywrap_tensorflow_internal.py", line 24, in
      swig_import_helper
      _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname,
      description)
      File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py",
      line 242, in load_module
      return load_dynamic(name, filename, file)
      File "C:UsersjohnsonAppDataLocalProgramsPythonPython37libimp.py",
      line 342, in load_dynamic
      return _load(spec)
      ImportError: DLL load failed with error code -1073741795



      Failed to load the native TensorFlow runtime.



      See https://www.tensorflow.org/install/errors



      for some common reasons and solutions. Include the entire stack trace
      above this error message when asking for help.



      Process finished with exit code 1




      i tried downloading and installing the 1.12.0 version. but when i want to add the package to the interpreter (via "settings" in pycharm), only the 1.13.1 version showed up (which was already uninstalled). that just adds to my confusion. as you surely can see, im new to python. i hope my questions are not too stupid. thank you!



      i use:
      - windos 7 (64bit)
      - Python 3.7
      - PyCharm community edition 2018.3.2
      - GeForce GT 425m
      - i5 CPU M580







      tensorflow dll python-3.7






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 24 at 15:06









      johnsonjohnson

      61




      61






















          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%2f55325189%2fhow-to-fix-tensorflow-throwing-dll-loading-error-python-3-7-windows-7%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%2f55325189%2fhow-to-fix-tensorflow-throwing-dll-loading-error-python-3-7-windows-7%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

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해