I am trying to make .exe file from my main.py script. In my main.py file I use Kivy and Tensorflow.
I use Pyinstaller to do it like that:
pyinstaller --onefile main.py
There is no problem with Kivy, but I have problem with Tensorflow:
ImportError: cannot import name 'pywrap_tensorflow'.
I was trying to do:
pyinstaller --paths venv\Lib\site-packages\tensorflow_core\
but it didn't solve mt problem. I also tried to use cx_freeze with this setup.py file:
from cs_freeze import setup, Executable
setup(name = "main",
version = "0.1",
description = "",
executables = [Executable("main.py")])
but then I have a problem with Kivy:
ModuleNotFoundError: no module named 'kivy.weakmethod'.
I would like to ask what is the best way to create a .exe file from python script which use both Kivy and Tensorflow.
To be honest I want to create an exe file from this tutorial: https://steemit.com/utopian-io/@faad/tensorflow-image-recognition-app-in-kivy
Best regards