문제

Wanted to create a stand alone binary executable from a python module with cx freeze.

[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.

도움이 되었습니까?

해결책

You're using wrong command: freeze.py in pip/commands directory is for pip freeze command.

Use cxfreeze program.

cxfreeze /home/frost/Desktop/dd.py

See cxfreeze script for usage detail.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top