pip install pyinstaller code example
Example 1: how to use pyinstaller
pyinstaller -- onefile <file name>
Example 2: pyinquier install
pip3 install PyInquirer
Example 3: pyinstaller windows
#Run pyinstaller and stop it to generate the spec file :
> pyinstaller filename.py
#A file with .spec as extension should be generated
#Now add the following lines to the beginning of the spec file :
> import sys
> sys.setrecursionlimit(5000)
#Now run the spec file using :
> pyinstaller filename.spec