作为1.7.6更新的结果,我是否真的需要安装Xcode并编译PyObjC? [英] Do I seriously need to install Xcode and compile PyObjC as a result of 1.7.6 update?

查看:125
本文介绍了作为1.7.6更新的结果,我是否真的需要安装Xcode并编译PyObjC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图在今天启动我的应用程序时收到此警告:



< blockquote>

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



UserWarning:由于您的Python版本不包含PyObjC( http:// pyobjc.sourceforge.net/ )。请安装PyObjC,如果不实用,请在 http://code.google .com / p / appengine-devappserver2-experiment / issues / list


解决方案

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



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

一旦你安装了命令行工具,你可以使用网站上的说明



网站详细介绍了使用 pip easy_install 或手动安装。我将简要地介绍下面的两个方法(手动安装稍微涉及一些,你应该阅读网站上的说明):

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



easy_install:



  easy_install -U pyobjc-core 
easy_install -U pyobjc



手动安装:



滚动到此网页的末尾,并阅读相关信息。


There must be an easier way.

I get this warning when attempting to start my app today:

/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.

解决方案

The PyObjC installer only requires Xcode because it requires a compiler. However, you can easily get a compiler without downloading Xcode.

Just click this link, and sign in with your Apple Developer ID, or register for a free Apple Developer Account if you don't already have one. Then search the page for the Command Line Tools, download them, and install them.

Once you have installed the Command Line Tools, you can install PyObjC using the instructions on the website.

The website details how to install using either pip, easy_install, or manually. I will briefly outline the first two methods below (manual installation is slightly more involved, and you should read the instructions on the site.):

pip:

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

easy_install:

easy_install -U pyobjc-core
easy_install -U pyobjc

manual installation:

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

这篇关于作为1.7.6更新的结果,我是否真的需要安装Xcode并编译PyObjC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆