Cxfreeze command not found in windows

I installed cx_Freeze through the MSI installer on my computer running Windows 7. He told me that the installation was successful and running pip install cx_Freeze does not cause anything.

In any case, when I try to run the cxfreeze --version command on the Windows command line, it tells me that the program cannot be found. I'm not even sure if this command should be run on the command line or in some python shell.

Despite the successful installation, there is no cxfreeze.xyz executable file in my file system. But in the python installation folder there is a Scripts\cxfreeze . This file has no extension and cannot be executed on the command line. This is not a binary file, but instead contains the following text:

 #!C:\Python\32-bit\3.4\python.exe from cx_Freeze import main main() 

How can I run cxfreeze as indicated in their documentation?

+6
source share
2 answers

After several studies, I found this to be a known cx_Freeze bug: https://bitbucket.org/anthony_tuininga/cx_freeze/issue/90/cxfreeze-in-windows-is-not-executable


There is also work in the link that I quote here:

I create cxfreeze.cmd in venv\Scripts\ with the following contents:

 :: cxfreeze.cmd :: make sure cxfreeze from the official installation is in the same folder :: python is in my path python "%~dp0\cxfreeze" %* 

And cmd.exe recognizes cxfreeze.cmd , so now I can run cxfreeze --version . Perhaps developers may consider adding my file to the official installation process.

+3
source

What worked for me:

Running in cmd:

python [Python folder dir]\Scripts\cxfreeze-postinstall

(Solution thanks to Puggie )

+2
source

Source: https://habr.com/ru/post/973651/


All Articles