A problem with TensorFlow

Hi,
I need to test DeepPavlov in order to decide whether we can use it for our projects. Now I wish to play around (just execute, not train) with it on a typical office computer with Pentium CPU and only 4 Gb.
I followed https://habr.com/ru/company/mipt/blog/472890/ to install DeepPavlov and adapted the instructions for squad_ru_bert_infer since I’m interested in FAQ answering. The installation completed successfully/ But when I start the REST server with
python -m deeppavlov riseapi squad_ru_bert_infer -p 5005
I get error

ImportError: DLL load failed: Произошел сбой в программе инициализации библиотеки динамической компоновки (DLL).
Failed to load the native TensorFlow runtime.

Stackoverflow ( https://stackoverflow.com/questions/54609544/how-to-fix-importerror-dll-load-failed-when-importing-keras) recommends manual installation of Tensorflow version build escpecially for CPU without AVX. I’ve installed ‘tensorflow-1.15.2-cp37-cp37m-win_amd64.whl’, but this didn’t help.
Can you please advice what to do?
My system info: Windows 10 Corporate, Python 3.7.6. Visual C++ Redistributables are installed (2005-2019).

Hi @mikadi,

You can try and install this TensorFlow wheel: https://github.com/fo40225/tensorflow-windows-wheel/tree/master/1.14.0/py37/CPU/sse2
It might help but I’m not sure.

1 Like

Thank you, @yoptar! This really worked! I’ve tried versions 1.12.0 and 1.15.2 before with no success, but version 1.14.0 helped.