在 OSX 10.10.2 上的 Anaconda python 上安装 pyobjc 时出错
errorr installing pyobjc on Anaconda python on OSX 10.10.2
我有 Python 3.3.5 :: Anaconda 2.1.0 (x86_64) Mac OS X 10.10.2 和 XCode 6.2 (6C131e) 和 pip 6.0.8
我正在尝试在 guide 之后安装 PyObjC。但是当我这样做时
pip install -U pyobjc
我收到以下错误:
$ pip install -U pyobjc
Requirement already up-to-date: pyobjc in ./anaconda/lib/python2.7/site-packages/pyobjc-3.1-py2.7.egg
Downloading/unpacking py2app>=0.9 (from pyobjc)
Downloading py2app-0.9.tar.gz (1.7MB): 1.7MB downloaded
Running setup.py (path:/private/var/folders/hc/fbm2svb951n5wr35bnw_qyqr0000gn/T/pip_build_user/py2app/setup.py) egg_info for package py2app
warning: no directories found matching 'doc/_static'
warning: no directories found matching 'doc/_templates'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.dSYM' found anywhere in distribution
warning: no previously-included files matching '*.dSYM/*' found anywhere in distribution
warning: no previously-included files matching '*__pycache__*' found anywhere in distribution
no previously-included directories found matching 'examples/*/build'
no previously-included directories found matching 'examples/*/dist'
no previously-included directories found matching 'examples/*/*/build'
no previously-included directories found matching 'examples/*/*/dist'
no previously-included directories found matching 'examples/*/*/*/build'
no previously-included directories found matching 'examples/*/*/*/dist'
Requirement already up-to-date: pyobjc-core==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_core-3.1-py2.7-macosx-10.5-x86_64.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-AddressBook==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_AddressBook-3.1-py2.7-macosx-10.5-x86_64.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-AppleScriptKit==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_AppleScriptKit-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-Automator==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_Automator-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-CFNetwork==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_CFNetwork-3.1-py2.7-macosx-10.5-x86_64.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-Cocoa==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_Cocoa-3.1-py2.7-macosx-10.5-x86_64.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-CoreData==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_CoreData-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-CoreText==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_CoreText-3.1-py2.7-macosx-10.5-x86_64.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-DiskArbitration==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_DiskArbitration-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-ExceptionHandling==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_ExceptionHandling-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-InstallerPlugins==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_InstallerPlugins-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-LatentSemanticMapping==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_LatentSemanticMapping-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-LaunchServices==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_LaunchServices-3.1-py2.7.egg (from pyobjc)
Downloading/unpacking pyobjc-framework-Message==3.1 (from pyobjc)
Could not find a version that satisfies the requirement pyobjc-framework-Message==3.1 (from pyobjc) (from versions: 2.2, 2.2b1, 2.2b2, 2.2b4, 2.3, 2.4, 2.5.1, 3.0.1, 3.0.3, 3.0.4)
Cleaning up...
No distributions matching the version for pyobjc-framework-Message==3.1 (from pyobjc)
谷歌搜索错误消息,我发现 this,它被标记为已解决,所以我不确定如何继续。
使用 Anaconda 安装 PyObjC 3.1 的问题可以通过在 运行 pip 之前设置 "MACOSX_DEPLOYMENT_TARGET=10.9" 来解决,例如:
$ MACOSX_DEPLOYMENT_TARGET=10.9 pip install -U pyobjc-core
$ MACOSX_DEPLOYMENT_TARGET=10.9 pip install -U pyobjc
pyobjc 3.2 中会有一个适当的修复,但我还不知道什么时候发布。
我有 Python 3.3.5 :: Anaconda 2.1.0 (x86_64) Mac OS X 10.10.2 和 XCode 6.2 (6C131e) 和 pip 6.0.8
我正在尝试在 guide 之后安装 PyObjC。但是当我这样做时
pip install -U pyobjc
我收到以下错误:
$ pip install -U pyobjc
Requirement already up-to-date: pyobjc in ./anaconda/lib/python2.7/site-packages/pyobjc-3.1-py2.7.egg
Downloading/unpacking py2app>=0.9 (from pyobjc)
Downloading py2app-0.9.tar.gz (1.7MB): 1.7MB downloaded
Running setup.py (path:/private/var/folders/hc/fbm2svb951n5wr35bnw_qyqr0000gn/T/pip_build_user/py2app/setup.py) egg_info for package py2app
warning: no directories found matching 'doc/_static'
warning: no directories found matching 'doc/_templates'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.dSYM' found anywhere in distribution
warning: no previously-included files matching '*.dSYM/*' found anywhere in distribution
warning: no previously-included files matching '*__pycache__*' found anywhere in distribution
no previously-included directories found matching 'examples/*/build'
no previously-included directories found matching 'examples/*/dist'
no previously-included directories found matching 'examples/*/*/build'
no previously-included directories found matching 'examples/*/*/dist'
no previously-included directories found matching 'examples/*/*/*/build'
no previously-included directories found matching 'examples/*/*/*/dist'
Requirement already up-to-date: pyobjc-core==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_core-3.1-py2.7-macosx-10.5-x86_64.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-AddressBook==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_AddressBook-3.1-py2.7-macosx-10.5-x86_64.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-AppleScriptKit==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_AppleScriptKit-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-Automator==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_Automator-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-CFNetwork==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_CFNetwork-3.1-py2.7-macosx-10.5-x86_64.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-Cocoa==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_Cocoa-3.1-py2.7-macosx-10.5-x86_64.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-CoreData==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_CoreData-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-CoreText==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_CoreText-3.1-py2.7-macosx-10.5-x86_64.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-DiskArbitration==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_DiskArbitration-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-ExceptionHandling==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_ExceptionHandling-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-InstallerPlugins==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_InstallerPlugins-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-LatentSemanticMapping==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_LatentSemanticMapping-3.1-py2.7.egg (from pyobjc)
Requirement already up-to-date: pyobjc-framework-LaunchServices==3.1 in ./anaconda/lib/python2.7/site-packages/pyobjc_framework_LaunchServices-3.1-py2.7.egg (from pyobjc)
Downloading/unpacking pyobjc-framework-Message==3.1 (from pyobjc)
Could not find a version that satisfies the requirement pyobjc-framework-Message==3.1 (from pyobjc) (from versions: 2.2, 2.2b1, 2.2b2, 2.2b4, 2.3, 2.4, 2.5.1, 3.0.1, 3.0.3, 3.0.4)
Cleaning up...
No distributions matching the version for pyobjc-framework-Message==3.1 (from pyobjc)
谷歌搜索错误消息,我发现 this,它被标记为已解决,所以我不确定如何继续。
使用 Anaconda 安装 PyObjC 3.1 的问题可以通过在 运行 pip 之前设置 "MACOSX_DEPLOYMENT_TARGET=10.9" 来解决,例如:
$ MACOSX_DEPLOYMENT_TARGET=10.9 pip install -U pyobjc-core
$ MACOSX_DEPLOYMENT_TARGET=10.9 pip install -U pyobjc
pyobjc 3.2 中会有一个适当的修复,但我还不知道什么时候发布。