How do I use py2app with a virtual environment?

佐手、 提交于 2020-01-07 03:54:04

问题


I'm trying to create an app with py2app and a simple Tkinter Python 3 program. My setup.py file is the default one created when running the py2applet --make-setup command. When I try to build the app, numerous files are copied to the app bundle but I get the this error: error: can't copy '/Users/bill/.virtualenvs/tk3/Resources/Python.app/Contents/MacOS/Python': doesn't exist or not a regular file. And when I try to open the built app, I get a dialog window with

A Python runtime could not be located. You may need to install a framework build of Python or edit the PyRuntimeLocations array in this application's Info.plist file.

I installed Python 3 with homebrew.

来源:https://stackoverflow.com/questions/26081258/how-do-i-use-py2app-with-a-virtual-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!