Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 10 pyinstaller tensorflow missing modules

I try to deploy a model with pyinstaller and when i run it i get the following error.

ModuleNotFoundError: No module named 'tensorflow.python._pywrap_tensorflow_internal'

Tensorflow 1.7.0

cudnn64_7

CUDA 9.0

Python 3.6

like image 356
Prog Avatar asked Nov 07 '22 08:11

Prog


1 Answers

You can resolve this issue by simply renaming the file _pywrap_tensorflow_internal.pyd contained in the dist folder to tensorflow.python._pywrap_tensorflow_internal.pyd. I still have to figure out how to tell pyinstaller the "correct" module name.

like image 137
Jascha Ulrich Avatar answered Nov 15 '22 08:11

Jascha Ulrich