开发者

py2exe problems

开发者 https://www.devze.com 2023-01-15 20:50 出处:网络
c:\\python26\\setup.py py2exe Trying to run py2exe and when I get to comman开发者_运维知识库d prompt I run the line above. However as opposed to converting my file it try\'s to open it. What am I do
c:\python26\setup.py py2exe

Trying to run py2exe and when I get to comman开发者_运维知识库d prompt I run the line above. However as opposed to converting my file it try's to open it. What am I doing wrong?


You must create your own setup.py and then run it with py2exe:

c:\my_python_scripts>python setup.py py2exe

In your setup.py you import distutils, py2exe and show names of your scripts to compile. There is template for it. Then I usually create .bat file which compiles my scripts.

Have you read py2exe tutorial?

0

精彩评论

暂无评论...
验证码 换一张
取 消