0
votes

Issue in importing TENSORFLOW(error code-1073741795 in jupyter notebook, Pycharm, Anaconda command line and in spyder. Howevery I am able to install successfully. But when I'm trying import then I am getting this error "ImportError: DLL load failed with error code-1073741795".

I have install all the versions of VS redistributable.

enter image description hereenter image description here

I am using win 7 with 64 bit os. I tried to install on tensorflow on all the versions of python 3.6, 3.7 & 3.8. with different versions of tensorflow. Did anyone encountered with error code-1073741795???


ImportError: DLL load failed with error code-1073741795

Failed to load the native tensorflow runtime.

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

what does error code-1073741795 means? How do we fix it.

1
Please edit your question to include the full stack trace as text and not as an image. - Brian McCutchon

1 Answers

0
votes

I got an error like this when installing tensorflow. It was because tensorflow was not installed properly.

  1. First, delete your current installed tensorflow completely.
  2. Install Anaconda.
  3. Make a new conda environment (this will help).
  4. After creating a conda environment, activate it.
  5. After activating, write: 'conda install tensorflow==1.15.0'

I am suggesting tensorflow 1.15.0 because I have found it more stable and better than any other version.

To test it is working properly, write:

    python

This will activate python, then write:

    import tensorflow as tf
    print(tf.__version__)

You may get some warnings when importing tensorflow, but ignore the warnings, you will not get any errors. (if you get any error, comment)