I am very new to Python and am using python 3.6. I want to convert my .py
file to an .exe
file. I'm learning to do so with the help of this tutorial , but I am stuck in step 3 because of the following error:
IndexError: tuple index out of range
setup.py:
from distutils.core import setup
import py2exe
setup(console=['hello.py'])*
How can I fix this?
Python 3.6 is not supported yet. ... You Have To Try Python 3.3 Version For It To Solve This Error ..Thank U
Python 3.6 still isn't supported by Pyinstaller. So in order to use it you're Python 3.5 or 3.3 or bellow.
Consider using https://www.pyinstaller.org/ , it works with 3.6 and can package most of the libraries as well.
It worked for me to export PyQT application, which is now usable on both Win7 and Win10 in portable form (just download all the files and launch the .exe).
GitHub 上有一个项目,它设法让 py2exe 在 python 3.6/3.7 上运行: https : //github.com/albertosottile/py2exe
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.