Xcode的10.9 SDK似乎缺少Python.framework.
Python.framework存在于Xcode 10.8 SDK中:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Python.framework
Run Code Online (Sandbox Code Playgroud)
但是,我的Xcode 10.9 SDK中缺少它:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/
Run Code Online (Sandbox Code Playgroud)
这很奇怪,因为Python.framework仍然可供10.9系统上的用户使用:
/System/Library/Frameworks/Python.framework
Run Code Online (Sandbox Code Playgroud)
是否有意从10.9 SDK中删除了Python.framework?这是苹果停止使用这个框架的一个不那么微妙的暗示吗?还是我只是困惑?
这很重要,因为我有一个OS X应用程序链接Python.framework.似乎我无法使用10.9的Base SDK构建设置构建我的应用程序,因为缺少Python.framework,我必须链接到它.
我对这个框架为什么缺失(或者为什么我错了,实际上没有丢失)的解释感兴趣,以及解决方法的建议.
我一直在一步一步地关注着名为"django入门"的kennethlove的截屏视频.我陷入了"第6集:通用视图比Namebrand便宜".我正在尝试安装需要"Mercurial"的"django-annoying".
我使用OSX 10.8.2,当我在终端上运行时:pip install mercurial我收到以下消息.
Downloading/unpacking mercurial
Downloading mercurial-2.3.2.tar.gz (3.6MB): 3.6MB downloaded
Running setup.py egg_info for package mercurial
Python headers are required to build Mercurial
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/mercurial.egg-info
writing pip-egg-info/mercurial.egg-info/PKG-INFO
writing top-level names to pip-egg-info/mercurial.egg-info/top_level.txt
writing dependency_links to pip-egg-info/mercurial.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/mercurial.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Python headers are required to build Mercurial
----------------------------------------
Command python setup.py egg_info failed with error code 1 in …Run Code Online (Sandbox Code Playgroud)