【发布时间】:2017-11-28 05:48:28
【问题描述】:
我正在尝试在 OSX Sierra 中安装 bigfloat:
pip install bigfloat
但我收到此错误:
mpfr.c:343:10: fatal error: 'gmp.h' file not found
#include "gmp.h"
^
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/hd/96gvrtvn66dcnbntwn9v3skh0000gp/T/pip-build-adS6t_/bigfloat/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/hd/96gvrtvn66dcnbntwn9v3skh0000gp/T/pip-fwI1xE-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/hd/96gvrtvn66dcnbntwn9v3skh0000gp/T/pip-build-adS6t_/bigfloat/
我已经安装了 Xcode 并运行了:
xcode-select --install
我该如何解决这个问题?
【问题讨论】: