推荐学习书目
› 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
justincnn
V2EX  ›  Python

mac 下封装 github 上一个项目出错,请教解决方案:

  •  
  •   justincnn · Mar 1, 2020 · 2292 views
    This topic created in 2412 days ago, the information mentioned may be changed or developed.
    本来自己用不封装也是可以的,无奈 ld 有要求,必须是 app 的,不能是那种难看的终端界面,求解决方案:

    github 的地址:
    https://github.com/hkslover/ximalaya

    一开始无法调用 tk,
    google 了下,按如下解决:
    and 'Python' not in path_to_tcl
    PyInstaller/hooks/hook-_tkinter.py
    @@ -, +, @@ def _find_tcl_tk(hook_api):

    # _tkinter depends on Tcl/Tk compiled as frameworks.
    path_to_tcl = bins[][]
    - if 'Library/Frameworks' in path_to_tcl:
    + if 'Library/Frameworks' in path_to_tcl and 'Python' not in path_to_tcl:


    这样的话,直接运行.exec 文件是可以运行,但是.app 无法运行。
    exec 运行之后显示:

    Last login: Sun Mar 1 17:21:23 on ttys001
    /Users/justin/Documents/GitHub/ximalaya/dist/main.app/Contents/MacOS/main ; exit;
    justin@Justins-IMac ~ % /Users/justin/Documents/GitHub/ximalaya/dist/main.app/Contents/MacOS/main ; exit;




    google 了半天实在没办法了,望指导。谢谢

    系统:mac os 10.15.3
    python version:3.8.1
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5313 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 05:46 · PVG 13:46 · LAX 22:46 · JFK 01:46
    ♥ Do have faith in what you're doing.