在窗户上安装​​cx_Freeze蟒蛇 [英] installing cx_Freeze to python at windows

查看:332
本文介绍了在窗户上安装​​cx_Freeze蟒蛇的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Python 3.4的胜利-8。我想获得蟒蛇code .exe程序。我了解到,它可以通过cx_Freeze完成。

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.

在MS-DOS命令行中,我写了PIP安装cx_Freeze成立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.

(当我写cxfreeze到命令行中,我得到这样的警告:C:\\用户\\ USER> cxfreeze
cxfreeze不被识别为一个内部或外部命令,可操作的程序或批处理文件。)

(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.)

(我还加cxfreeze的位置,以PATH的环境变量)

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

任何帮助将appriciated感谢。

Any help would be appriciated thanks.

推荐答案

我遇到了类似的问题(Python的3​​.4 32位,在Windows 7 64位)。安装cx_freeze后,这三个文件出现在 C:\\ Python34 \\脚本\\

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-安装后

  • cxfreeze-快速入门

  • cxfreeze
  • cxfreeze-postinstall
  • cxfreeze-quickstart

这些文件没有文件扩展名,但似乎是Python脚本。当您从命令提示符 python.exe cxfreeze-安装后,正在在Python脚本目录下创建两个批处理文件:

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

  • cxfreeze.bat
  • cxfreeze-quickstart.bat

从这一刻起,你应该能够运行cx_freeze。

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

cx_freeze被使用提供的Win32安装程序安装( cx_Freeze-4.3.3.win32-py3.4.exe )。使用PIP了完全相同的结果安装。

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.

这篇关于在窗户上安装​​cx_Freeze蟒蛇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆