py2app独立版本的“找不到Python运行时”

2024-10-02 08:16:11 发布

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

我试图使用py2app将我编写的一个简短的Python程序转换成一个易于分发的osx应用程序文件。我完成了py2app教程,但是当我单击我的应用程序文件时,会显示以下对话框:

A Python runtime not could be located. You may need to install a framework build of Python, or edit the PyRuntimeLocations array in this application's Info.plist file. This is my first time building a piece of software, so apologies for any obvious missteps.

我不确定这是否有用,但单击对话框中的“打开控制台”会显示以下错误:

  • LaunchServices: Could not store lsd-identifiers file at /private/var/db/lsd/com.apple.lsdschemes.plist
  • launchservicesd[83]: SecTaskLoadEntitlements failed error=22
  • appleeventsd[53]: SecTaskLoadEntitlements failed error=22 11/27/16 7:29:19.787 PM
  • sharedfilelistd[307]: SecTaskLoadEntitlements failed error=22

我知道如果py2app uses a "system" version of Python to produce an app, it won't include that Python in the distribution。但是,在终端中输入$哪个python将引导我到我的anaconda安装,所以这似乎不是问题所在。在

这是我第一次尝试创建一个软件,所以请提前为任何明显的错误道歉。任何帮助都将不胜感激,因为我一整天都在努力工作。在


Tags: 文件ofthetoin应用程序错误not

热门问题