errorr在OSX 10.10.2的Anaconda python上安装pyobjc [英] errorr installing pyobjc on Anaconda python on OSX 10.10.2

查看:113
本文介绍了errorr在OSX 10.10.2的Anaconda python上安装pyobjc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在具有XCode 6.2(6C131e)和pip 6.0.8的Mac OS X 10.10.2上具有Python 3.3.5 :: Anaconda 2.1.0(x86_64)

I have Python 3.3.5 :: Anaconda 2.1.0 (x86_64) on Mac OS X 10.10.2 with XCode 6.2 (6C131e) and pip 6.0.8

我正在尝试按照指南的要求安装PyObjC.但是当我这样做

I'm trying to install PyObjC following the guide. However when I do

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)

搜索错误消息,发现,它被标记为已解决,所以我不确定如何继续.

Googling the error message, I found this, where it's marked as resolved so I'm not sure how to proceed.

推荐答案

例如,可以通过在运行pip之前设置"MACOSX_DEPLOYMENT_TARGET = 10.9"来解决使用Anaconda安装PyObjC 3.1的问题:

The problem with installing PyObjC 3.1 using Anaconda can be worked around by setting "MACOSX_DEPLOYMENT_TARGET=10.9" before running pip, as an example:

$ MACOSX_DEPLOYMENT_TARGET=10.9 pip install -U pyobjc-core
$ MACOSX_DEPLOYMENT_TARGET=10.9 pip install -U pyobjc

在pyobjc 3.2中将有一个适当的修复程序,但我尚不知道何时发布.

There will be a proper fix in pyobjc 3.2, but I don't know yet when that will be released.

这篇关于errorr在OSX 10.10.2的Anaconda python上安装pyobjc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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