[英]Python cx-freeze issue
Wanted to create a stand alone binary executable from a python module with cx freeze. 想要使用cx冻结从python模块创建独立的二进制可执行文件。
[root@frost-pc ~]# find / -name freeze.py
/usr/lib/python3.3/site-packages/pip/commands/freeze.py
/usr/lib/python2.7/site-packages/pip/commands/freeze.py
[root@frost-pc ~]# python2 /usr/lib/python2.7/site-packages/pip/commands/freeze.py /home/frost/Desktop/dd.py
And nothing happens, freeze.py just runs for a 3 seconds and it does not output binary file. 并没有任何反应,freeze.py只会运行3秒钟,并且不会输出二进制文件。
You're using wrong command: freeze.py
in pip/commands
directory is for pip freeze
command. 您正在使用错误的命令: freeze.py
在pip/commands
目录是pip freeze
命令。
Use cxfreeze
program. 使用cxfreeze
程序。
cxfreeze /home/frost/Desktop/dd.py
See cxfreeze script
for usage detail. 有关用法的详细信息,请参见cxfreeze script
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.