当我尝试用pip安装新的python包时,我得到以下错误。gcc似乎找不到Availability.h头文件。我在使用多个python包时遇到了这个问题,所以这不仅仅是库的问题。我运行的是Anaconda2.2.0,我使用的是Mac OS X Yosemite 10.10.2 64位。在
我试着重新安装Xcode和Xcode dev工具,因为这似乎是gcc的一个问题,但是没有成功。在
beavernet-163:desktop David$ pip install bllipparser
Collecting bllipparser
Using cached bllipparser-2015.01.11.tar.gz
Installing collected packages: bllipparser
Running setup.py install for bllipparser
Complete output from command /Users/David/anaconda/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/0d/n030c4312490_6px0bt47_wh0000gn/T/pip-build-X5SLrE/bllipparser/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/0d/n030c4312490_6px0bt47_wh0000gn/T/pip-FzytLX-record/install-record.txt --single-version-externally-managed --compile:
/Users/David/anaconda/lib/python2.7/site-packages/setuptools-14.3-py2.7.egg/setuptools/dist.py:282: UserWarning: Normalizing '2015.01.11' to '2015.1.11'
running install
running build
running build_py
creating build
creating build/lib.macosx-10.5-x86_64-2.7
creating build/lib.macosx-10.5-x86_64-2.7/bllipparser
copying python/bllipparser/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/bllipparser
copying python/bllipparser/CharniakParser.py -> build/lib.macosx-10.5-x86_64-2.7/bllipparser
copying python/bllipparser/JohnsonReranker.py -> build/lib.macosx-10.5-x86_64-2.7/bllipparser
copying python/bllipparser/ModelFetcher.py -> build/lib.macosx-10.5-x86_64-2.7/bllipparser
copying python/bllipparser/ParsingShell.py -> build/lib.macosx-10.5-x86_64-2.7/bllipparser
copying python/bllipparser/RerankerFeatureCorpus.py -> build/lib.macosx-10.5-x86_64-2.7/bllipparser
copying python/bllipparser/RerankingParser.py -> build/lib.macosx-10.5-x86_64-2.7/bllipparser
running build_ext
building 'bllipparser._CharniakParser' extension
creating build/temp.macosx-10.5-x86_64-2.7
creating build/temp.macosx-10.5-x86_64-2.7/first-stage
creating build/temp.macosx-10.5-x86_64-2.7/first-stage/PARSE
gcc -fno-strict-aliasing -I/Users/David/anaconda/include -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ifirst-stage/PARSE/ -I/Users/David/anaconda/include/python2.7 -c first-stage/PARSE/parser_wrapper.C -o build/temp.macosx-10.5-x86_64-2.7/first-stage/PARSE/parser_wrapper.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /Users/David/anaconda/include/python2.7/pyport.h:325:0,
from /Users/David/anaconda/include/python2.7/Python.h:58,
from first-stage/PARSE/parser_wrapper.C:155:
/usr/local/lib/gcc/x86_64-apple-darwin12.5.0/4.8.1/include-fixed/math.h:54:26: fatal error: Availability.h: No such file or directory
#include <Availability.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/Users/David/anaconda/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/0d/n030c4312490_6px0bt47_wh0000gn/T/pip-build-X5SLrE/bllipparser/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/0d/n030c4312490_6px0bt47_wh0000gn/T/pip-FzytLX-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/0d/n030c4312490_6px0bt47_wh0000gn/T/pip-build-X5SLrE/bllipparser
这是gcc版本。在
^{pr2}$Xcode版本是6.2。在
目前没有回答
相关问题 更多 >
编程相关推荐