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

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

  •  
  •   justincnn · 2020-03-01 17:22:40 +08:00 · 1461 次点击
    这是一个创建于 1517 天前的主题,其中的信息可能已经有所发展或是发生改变。
    本来自己用不封装也是可以的,无奈 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
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2626 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:33 · PVG 12:33 · LAX 21:33 · JFK 00:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.