4

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?

3

3 Answers 3

1

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.
Sign up to request clarification or add additional context in comments.

Comments

1

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).

Comments

0

there is a project on GitHub which managed to get py2exe working on python 3.6/3.7: https://github.com/albertosottile/py2exe

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.