Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing cx_Freeze to python at windows

I am using python 3.4 at win-8. I want to obtain .exe program from python code. I learned that it can be done by cx_Freeze.

In MS-DOS command line, I wrote pip install cx_Freeze to set up cx_Freeze. It is installed but it is not working.

(When I wrote cxfreeze to command line, I get this warning:C:\Users\USER>cxfreeze 'cxfreeze' is not recognized as an internal or external command,operable program or batch file.)

(I also added location of cxfreeze to "PATH" by environment variables)

Any help would be appriciated thanks.

like image 512
mesel Avatar asked Aug 12 '14 17:08

mesel


People also ask

How do you use Cxfreeze?

First we need to install CX_Freeze module using pip install CX_Frezze command in command prompt. First step is to solve this assignment, a python program conversion. We need standard library modules, here we use urllib and re module where we parsed python.com.

What is CX freeze?

cx_Freeze is a set of scripts and modules for freezing Python scripts into executables, in much the same way that py2exe and py2app do. Unlike these two tools, cx_Freeze is cross-platform and should work on any platform that Python itself works on. It supports Python 2.7 or higher (including Python 3).


1 Answers

I faced a similar problem (Python 3.4 32-bit, on Windows 7 64-bit). After installation of cx_freeze, three files appeared in c:\Python34\Scripts\:

  • cxfreeze
  • cxfreeze-postinstall
  • cxfreeze-quickstart

These files have no file extensions, but appear to be Python scripts. When you run python.exe cxfreeze-postinstall from the command prompt, two batch files are being created in the Python scripts directory:

  • cxfreeze.bat
  • cxfreeze-quickstart.bat

From that moment on, you should be able to run cx_freeze.

cx_freeze was installed using the provided win32 installer (cx_Freeze-4.3.3.win32-py3.4.exe). Installing it using pip gave exactly the same result.

like image 190
Puggie Avatar answered Sep 21 '22 23:09

Puggie