I need to compile wxPython GUI on macOS

Job ID: 34487644

Budget: $10 – $30 USD

I'm trying to compile Python 3 code, using PyInstaller, which contains GUI built in wxPython. But following error occurs when I run the compiled executable:

This program needs access to the screen. Please run with a Framework build of python, and only when you are logged in on the main display of your Mac.

Internet search shows we need to use "pythonw" when compiling, because it needs framework build of Python. But sadly, it points to Python 2 (pre-installed). I don't know how to access framework build of Python 3.

Notes:
I'm new to macOs
I cannot use --windowed
I cannot use Anaconda

I've installed Python 3 from python.org. And installed wxPython via pip.
Related categories: Python Software Architecture Mac OS