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?

3
  • How did you install python? Commented May 28, 2015 at 5:53
  • install pyinstaller then try pyinstaller filename.py -F in command prompt in the directory where the python file is available Commented May 28, 2015 at 6: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. Commented May 29, 2015 at 1:30

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

I have Python installed. I have version 2.7.8 if you want to know.
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.

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.