Город МОСКОВСКИЙ
00:14:32

Convert Kivy Python File to an .Exe file using Pyinstaller | External hidden module error solved

Аватар
Чат-боты начинающих
Просмотры:
28
Дата загрузки:
02.12.2023 16:45
Длительность:
00:14:32
Категория:
Технологии и интернет

Описание

In this tutorial, you'll learn how to convert Python, especially the Python Kivy application to an Executable(Exe) file using the Pyinstaller library. This tutorial will also cover how you can define your hidden modules and libraries in the Python Pyinstaller.

##### CMD COMMANDS ######

1. pip install pyinstaller
2. pyinstaller --hidden-import plyer.platforms.win.filechooser main.py -w
3. pyinstaller main.spec -y

##### SPEC FILE CHANGES #####

1. from kivy_deps import sdl2, glew
2. a.datas += [('Code\filename.kv','location\filename.kv','DATA')]
3. Tree('folder_location')
4. *[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)]

Рекомендуемые видео