如何在虚拟环境中使用py2app?

2024-04-19 18:25:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用py2app和一个简单的tkinterpython3程序创建一个应用程序。我的设置.py文件是运行py2applet--makesetup命令时创建的默认文件。当我尝试构建应用程序时,许多文件被复制到应用程序包中,但是我得到以下错误:error: can't copy '/Users/bill/.virtualenvs/tk3/Resources/Python.app/Contents/MacOS/Python': doesn't exist or not a regular file。当我试图打开内置的应用程序时,我会看到一个对话框窗口

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.

我用自制程序安装了python3。在


Tags: or文件py命令程序程序包应用程序错误