V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
fortunezhang
V2EX  ›  Python

python 生成 exe 可执行文件

  •  
  •   fortunezhang · 2014-11-16 16:50:41 +08:00 · 4936 次点击
    这是一个创建于 3446 天前的主题,其中的信息可能已经有所发展或是发生改变。
    本人菜鸟,请大婶们解决一下我的问题。
    本人用python写了一个程序,包含几个package和main文件,用命令行执行起来很顺利,完全没有错误。想把它打包成exe可安装或者可执行程序,使别人拿过去解压就可以用,使用了py2exe,打包成功了,但是双击main以后,一闪而退了,不知道怎么回事,其实我里面有几个线程来执行这些事。
    另外如果我想打包成那种可安装的程序该怎么处理???请大婶们指点。
    5 条回复    2014-11-16 19:33:35 +08:00
    aaaa007cn
        1
    aaaa007cn  
       2014-11-16 17:17:15 +08:00   ❤️ 1
    去命令行运行你打包的 exe
    看错误提示
    besto
        2
    besto  
       2014-11-16 17:55:21 +08:00
    py2exe...换一个程序,cxfreeze支持三个os
    Bismarrck
        3
    Bismarrck  
       2014-11-16 18:05:39 +08:00
    我之前用过pyinstaller,你可以试试。
    Owenjia
        4
    Owenjia  
       2014-11-16 19:05:34 +08:00 via Android
    是不是中文路径的问题?
    littlewey
        5
    littlewey  
       2014-11-16 19:33:35 +08:00
    用cli运行下 main看看报什么?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1301 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:45 · PVG 01:45 · LAX 10:45 · JFK 13:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.