Error: pip install pycapnp
Error: pip install pycapnp
我一直在尝试通过 pip 在我的 macbook pro 上安装 pycapnp。但我似乎在尝试下载它时遇到问题。
错误如下:
warning: "Your compiler supports C++11 but your C++ standard library does not.
If your " "system has libc++ installed (as should be the case
on e.g. Mac OSX), try adding " "-stdlib=libc++ to your CXXFLAGS."
[-W#warnings]
#warning "Your compiler supports C++11 but your C++ standard library does not.
If your "\
^
/private/var/folders/yv/f6fy_dm51799h6htr1nd30480000gn/T/pip-build-doQpew/
pycapnp/build/include/kj/common.h:78:10: fatal error: 'initializer_list' file
not found
#include <initializer_list>
^
2 warnings and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/
private/var/folders/yv/f6fy_dm51799h6htr1nd30480000gn/T/pip-build-doQpew/pycapnp/
setup.py';f=getattr(tokenize, 'open', open)(__file__);code=
f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"
install --record /var/folders/yv/f6fy_dm51799h6htr1nd30480000gn/T/
pip-hawqg0-record/install-record.txt --single-version-externally-managed --compile"
failed with error code 1 in /private/var/folders/yv/f6fy_dm51799h6htr1nd30480000gn/
T/pip-build-doQpew/pycapnp/
如有任何帮助,我们将不胜感激。谢谢!
尝试通过声明
来安装它
➜ export MACOSX_DEPLOYMENT_TARGET=10.10
或
➜ CFLAGS='-stdlib=libc++' pip install pycapnp
或者
➜ export CXXFLAGS="-stdlib=libc++"
➜ export CFLAGS="-stdlib=libc++"
您可以在this issue
中查看更多详细信息
顺便说一句,我在我的Macbook上的virtualenv中安装成功。
我一直在尝试通过 pip 在我的 macbook pro 上安装 pycapnp。但我似乎在尝试下载它时遇到问题。
错误如下:
warning: "Your compiler supports C++11 but your C++ standard library does not.
If your " "system has libc++ installed (as should be the case
on e.g. Mac OSX), try adding " "-stdlib=libc++ to your CXXFLAGS."
[-W#warnings]
#warning "Your compiler supports C++11 but your C++ standard library does not.
If your "\
^
/private/var/folders/yv/f6fy_dm51799h6htr1nd30480000gn/T/pip-build-doQpew/
pycapnp/build/include/kj/common.h:78:10: fatal error: 'initializer_list' file
not found
#include <initializer_list>
^
2 warnings and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/
private/var/folders/yv/f6fy_dm51799h6htr1nd30480000gn/T/pip-build-doQpew/pycapnp/
setup.py';f=getattr(tokenize, 'open', open)(__file__);code=
f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"
install --record /var/folders/yv/f6fy_dm51799h6htr1nd30480000gn/T/
pip-hawqg0-record/install-record.txt --single-version-externally-managed --compile"
failed with error code 1 in /private/var/folders/yv/f6fy_dm51799h6htr1nd30480000gn/
T/pip-build-doQpew/pycapnp/
如有任何帮助,我们将不胜感激。谢谢!
尝试通过声明
来安装它➜ export MACOSX_DEPLOYMENT_TARGET=10.10
或
➜ CFLAGS='-stdlib=libc++' pip install pycapnp
或者
➜ export CXXFLAGS="-stdlib=libc++"
➜ export CFLAGS="-stdlib=libc++"
您可以在this issue
中查看更多详细信息顺便说一句,我在我的Macbook上的virtualenv中安装成功。