编辑:问题由LINK
解决我的问题不是关于xcode的问题,因为键入后:
xcode-select --install
那我就收到了
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
当我在终端中运行以下代码时:
pip install bintrees
安装bintrees软件包,然后收到以下错误消息:
Building wheels for collected packages: bintrees
Building wheel for bintrees (setup.py) ... error
ERROR: Complete output from command /anaconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/yg/k7bblhjs4sj89bl6b5ygcjrw0000gn/T/pip-install-hhqgwgcf/bintrees/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/yg/k7bblhjs4sj89bl6b5ygcjrw0000gn/T/pip-wheel-_s_pguci --python-tag cp36:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/bintrees
copying bintrees/treeslice.py -> build/lib.macosx-10.7-x86_64-3.6/bintrees
copying bintrees/rbtree.py -> build/lib.macosx-10.7-x86_64-3.6/bintrees
copying bintrees/avltree.py -> build/lib.macosx-10.7-x86_64-3.6/bintrees
copying bintrees/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/bintrees
copying bintrees/bintree.py -> build/lib.macosx-10.7-x86_64-3.6/bintrees
copying bintrees/abctree.py -> build/lib.macosx-10.7-x86_64-3.6/bintrees
running build_ext
(...)
skipping 'bintrees/cython_trees.c' Cython extension (up-to-date)
building 'bintrees.cython_trees' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/bintrees
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -I/anaconda3/include/python3.6m -c bintrees/ctrees.c -o build/temp.macosx-10.7-x86_64-3.6/bintrees/ctrees.o
In file included from /anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/syslimits.h:7:0,
from /anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:34,
from /anaconda3/include/python3.6m/Python.h:11,
from bintrees/ctrees.h:12,
from bintrees/ctrees.c:9:
/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
#include_next <limits.h> /* recurse down to the real one */
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for bintrees
Running setup.py clean for bintrees
Failed to build bintrees
Installing collected packages: bintrees
Running setup.py install for bintrees ... error
ERROR: Complete output from command /anaconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/yg/k7bblhjs4sj89bl6b5ygcjrw0000gn/T/pip-install-hhqgwgcf/bintrees/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/yg/k7bblhjs4sj89bl6b5ygcjrw0000gn/T/pip-record-gk8f7gsy/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
我的问题是如何安装此特定库?为什么会出现此错误?该如何解决?
错误消息的时间更长,但是我在这里只发布了一个片段-stackoverflow不允许发布如此大量的代码。