推荐学习书目
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 · Nov 16, 2014 · 5556 views
    This topic created in 4196 days ago, the information mentioned may be changed or developed.
    本人菜鸟,请大婶们解决一下我的问题。
    本人用python写了一个程序,包含几个package和main文件,用命令行执行起来很顺利,完全没有错误。想把它打包成exe可安装或者可执行程序,使别人拿过去解压就可以用,使用了py2exe,打包成功了,但是双击main以后,一闪而退了,不知道怎么回事,其实我里面有几个线程来执行这些事。
    另外如果我想打包成那种可安装的程序该怎么处理???请大婶们指点。
    5 replies    2014-11-16 19:33:35 +08:00
    aaaa007cn
        1
    aaaa007cn  
       Nov 16, 2014   ❤️ 1
    去命令行运行你打包的 exe
    看错误提示
    besto
        2
    besto  
       Nov 16, 2014
    py2exe...换一个程序,cxfreeze支持三个os
    Bismarrck
        3
    Bismarrck  
       Nov 16, 2014
    我之前用过pyinstaller,你可以试试。
    Owenjia
        4
    Owenjia  
       Nov 16, 2014 via Android
    是不是中文路径的问题?
    littlewey
        5
    littlewey  
       Nov 16, 2014
    用cli运行下 main看看报什么?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4059 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 05:08 · PVG 13:08 · LAX 22:08 · JFK 01:08
    ♥ Do have faith in what you're doing.