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
kingmo888
V2EX  ›  Python

Python 用 py2exe 编译,卡在 running py2exe,求解。

  •  
  •   kingmo888 · 2017-02-10 20:36:56 +08:00 · 1531 次点击
    这是一个创建于 2603 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,卡在第一行。 然后 CPU 跑满 25%,2 个小时不动。醉了。

    4 条回复    2017-02-13 08:56:16 +08:00
    me007
        1
    me007  
       2017-02-11 04:35:08 +08:00
    2 ? 3 ?

    --------

    系统 xp x86
    python 版本 python3

    pip install pypiwin32

    pip install pyinstaller


    打包 exe 命令
    pyinstaller -F -w -i manage.ico app.py

    -F :打包为单文件
    -w : Windows 程序,不显示命令行窗口
    -i :是程序图标, app.py 是你要打包的 py 文件


    本人在这样的环境下使用, NO Problam
    Jackeriss
        2
    Jackeriss  
       2017-02-11 16:59:14 +08:00 via iPhone
    打包脚本发一下看看
    kingmo888
        3
    kingmo888  
    OP
       2017-02-13 08:55:29 +08:00
    感谢诸位。问题已经自我解决。 http://www.lizenghai.com/archives/487.html
    kingmo888
        4
    kingmo888  
    OP
       2017-02-13 08:56:16 +08:00
    @me007 是我的版本太高。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   961 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:43 · PVG 04:43 · LAX 13:43 · JFK 16:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.