0

I am trying to build an NLP model for sentiment analysis and using keras for implementing neural network.I have install all tensorflow, tensorflow-gpu, keras with latest version and using python 3.6.6.

Here is the initial code:

import tensorflow as tf

I am getting error

from tensorflow.python._pywrap_tensorflow_internal import *

ImportError: DLL load failed: The specified module could not be found.

at first line when importing tensorflow.

I have searched everything on web but i am not able to find the solution to this problem.

desertnaut
  • 57,590
  • 26
  • 140
  • 166
user3624146
  • 369
  • 1
  • 5
  • 16
  • which OS you are using currently? are you using windows? – Tasnuva Leeya Jul 29 '20 at 12:47
  • @Tasnuva I am using Windows 10 and python 3.6.6 in Pycharm – user3624146 Jul 29 '20 at 12:48
  • is it helpful to you? https://stackoverflow.com/questions/44503603/tensorflow-on-windows-importerror-dll-load-failed-the-specified-module-could have you tried downgrading tensorflow version? – Tasnuva Leeya Jul 29 '20 at 12:50
  • This is a common old problem, it has to do with version matching. Try to find an already proved working setup, even if it's with older versions. Maybe this helps: https://stackoverflow.com/questions/40884668/installing-tensorflow-on-windows-python-3-6-x – Petronella Jul 29 '20 at 12:57
  • Thanks guys, Tensorflow : 2.0.0 works with Keras 2.3.1. My issues is resolved. Thanks a ton. – user3624146 Jul 29 '20 at 13:09

1 Answers1

1

Make sure you have installed CUDA and have completed the setup for Windows. If this doesn't solve your problem, add more details to your question.

Kanad
  • 1,751
  • 2
  • 11
  • 18