0

I am trying to convert a python script to an executable file.

I have tried cxFreeze and py2exe, but both told me that Python27 are not in the registry. I found several other questions that tell me to go to regedit and find the python folder, but it is not there. I tried going to HKEY_CURRENT_USER/Software and Python27 was not there.

Do I need to add it there to run the installer for cxFreeze or py2exe or is there another way?

Freek Wiekmeijer
  • 4,556
  • 30
  • 37
pengowen123
  • 1,007
  • 1
  • 12
  • 23
  • How did you install python? – Freek Wiekmeijer May 28 '15 at 05:53
  • install pyinstaller then try pyinstaller filename.py -F in command prompt in the directory where the python file is available – The6thSense May 28 '15 at 06:00
  • I installed it at the python.org download page for 2.7.8. I used the x86 64-bit .msi installer. I use the installer for the py2exe or cxFreeze and I get as far as opening it and pressing next, then it says I have an error. On the next page it asks for the Python directory and I can't type text into it. – pengowen123 May 29 '15 at 01:30

2 Answers2

1

Tools like PyInstaller package python scripts with the python run-time interpreter into standalone Windows applications. Installation of python (2.7.x) and all required python libraries is a prerequisite.

My suggestion is to install the latest Python 2.7 from this location: https://www.python.org/downloads/release/python-2710/. Make sure to choose the correct architecture, apparently 32-bit is the easiest to get working.

Community
  • 1
  • 1
Freek Wiekmeijer
  • 4,556
  • 30
  • 37
0

I fixed the issue. Apparently I accidentally installed 32-bit Python on a 64-bit machine. So I have to use the 32-bit installer because it installs the registry key in a different place. Thanks for the help anyways.

pengowen123
  • 1,007
  • 1
  • 12
  • 23