作为1.7.6更新的结果,我真的需要安装Xcode并编译PyObjC吗?

2024-06-22 10:39:43 发布

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

一定有更简单的方法。在

我今天尝试启动应用程序时收到以下警告:

/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/file_watcher.py:97:

UserWarning: Detecting source code changes is not supported because your Python version does not include PyObjC (http://pyobjc.sourceforge.net/). Please install PyObjC or, if that is not practical, file a bug at http://code.google.com/p/appengine-devappserver2-experiment/issues/list.


Tags: 方法应用程序http警告isgooglecontentsnot
1条回答
网友
1楼 · 发布于 2024-06-22 10:39:43

PyObjC安装程序只需要Xcode,因为它需要编译器。但是,不需要下载Xcode就可以轻松地获得编译器。在

只需click this link,并使用您的Apple Developer ID登录,或者注册一个免费的Apple Developer帐户(如果您还没有)。然后在页面中搜索命令行工具,下载并安装它们。在

一旦安装了命令行工具,就可以使用instructions on the website安装PyObjC。在

该网站详细介绍了如何使用pipeasy_install或手动安装。我将简要概述以下前两种方法(手动安装稍微涉及一些,您应该阅读网站上的说明):

pip:

env CC=clang pip install -U pyobjc-core
env CC=clang pip install -U pyobjc

轻松安装:

^{pr2}$

手动安装:

Scroll to the end of this webpage, and read the pertinent information.

相关问题 更多 >