0
votes

After installing tensorflow when i import tensorflow getting this error ImportError: DLL load failed while importing _pywrap_tensorflow_internal:A dynamic link library (DLL) initialization routine failed.

Details -----

tf-cpu version 2.2.0 python version 3.8.3

2
Possible duplicate with stackoverflow.com/questions/49932993/…. They say you should install TF version 1.15. - Catalina Chircu
Can you edit your question to give us some more details about your problem, the error messages, version you are using, your CPU type etc.? - neel g
There is an 'official' post on this issue, in which I had provided a general solution. - GZ0

2 Answers

2
votes

Are you using conda (or any other package management system)? If so, did you install your tensorflow using conda install tensorFlow or pip install tensorflow?

if you installed it with pip, I recommend you to uninstall it and then install tensroflow from conda. This should solve this.

0
votes

you may have an issue with CPU AVX compatibility. Check out this thread at GitHub: https://github.com/tensorflow/tensorflow/issues/39423.

Try installing TF version = 2.3.0. If still fails - I suggest reopening that issue at GH.