1

Context

I am busy making a game using pygame on python 3.5 but when i wanted to link the game to my friends I realized i needed a .exe file because they dont have python installed so I did some research and found out that you can use py2exe for that. But after looking on the downloads page I saw that there was no download for python 3.5.

Question

Can i still use another version of py2exe to convert my .py and my modules to a .exe file or do I need to have python 2.7 (or any other python version which is compatible). If i do need another version is there an easy way to convert my 3.5 script to a 2.7 script or do i need to write it all over?

I hope I have given you all the info you need. But feel free to ask if you need more.

ThomasThiebaud
  • 11,331
  • 6
  • 54
  • 77
  • python 3.5 is very similar to 2.7 - maybe it will work without modifications. – furas Nov 24 '15 at 13:39
  • 2
    Python 2.7 and Python 3.5 differ a lot. You you try [cx_Freeze](http://cx-freeze.sourceforge.net/). – Matthias Nov 24 '15 at 13:44
  • 1
    I've had great luck with pyinstaller: http://www.pyinstaller.org/ – kponz Nov 24 '15 at 13:45
  • 1
    Try to execute the script with python2.7 and see if it throws errors. Not much is different between python 2.7 and python 3.5 but there ARE differences and they are big ones too. Some standard libraries in 3.5 might be third-party libs in 2.7, the syntax differs sublty here and there. So you dont need to write the script from scratch, you need to modify it for 2.7. Even better you can do lot of wrestling and make it compatible with both 2.7 and 3.5 but your code might look ugly especially in the `import` statements. – dopstar Nov 24 '15 at 14:12

0 Answers0