Answer the question
In order to leave comments, you need to log in
The application built on pyinstaller on mac does not start, how to solve?
The application built by pyinstaller 3.6 version of Python 3.7 does not work.
I read that the problem is due to the imported tkinter library.
Who knows how to solve or who faced the problem?
By the way, everything works on windows ...
Answer the question
In order to leave comments, you need to log in
tarp20 , Use py2applet to build the package for macOS
To add an icon file, simply add the iconfile option when creating setup.py:
py2applet --make-setup foo.py --iconfile images/icon.icns
or
in your setup.py, add IconFile
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['main.py']
DATA_FILES = []
OPTIONS = {
'iconfile':'icon. icns',
'plist': {'CFBundleShortVersionString':'0.1.0',}
}
setup(
app=APP,
name='MacApp',
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question