尝试“pip install reportlab==3.0”,我得到一个包含标头 <string.h> 的疯狂长错误
Posted
技术标签:
【中文标题】尝试“pip install reportlab==3.0”,我得到一个包含标头 <string.h> 的疯狂长错误【英文标题】:Trying to "pip install reportlab==3.0" and I get a crazy long error with include header <string.h> 【发布时间】:2021-02-02 18:47:34 【问题描述】:我正在尝试pip install reportlab==3.0
,但我没有任何运气可以克服这个错误。有人能告诉我我错过了什么吗?最新版本的 reportlab 安装正常,但我无法使用。
我已经尝试过 easy_install 和所有版本。似乎 3.0 我没问题。
我还确保我的标题已链接。看起来最后甚至还有一些javascript错误?这让我很难过
#Attempting install of _rl_accel & pyHnj
#extensions from '/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel'
################################################
################################################
#Attempting install of _renderPM
#extensions from '/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM'
will use package libart 2.3.12
# installing without freetype no ttf, sorry!
# You need to install a static library version of the freetype2 software
# If you need truetype support in renderPM
# You may need to edit setup.cfg (win32)
# or edit this file to access the library if it is installed
################################################
Standard T1 font curves already downloaded
running install
running build
running build_py
creating build
creating build/lib.macosx-10.15-x86_64-2.7
creating build/lib.macosx-10.15-x86_64-2.7/reportlab
copying src/reportlab/rl_config.py -> build/lib.macosx-10.15-x86_64-2.7/reportlab
copying src/reportlab/__init__.py -> build/lib.macosx-10.15-x86_64-2.7/reportlab
copying src/reportlab/rl_settings.py -> build/lib.macosx-10.15-x86_64-2.7/reportlab
creating build/lib.macosx-10.15-x86_64-2.7/reportlab/graphics
creating build/lib.macosx-10.15-x86_64-2.7/reportlab/graphics/charts
copying src/reportlab/graphics/charts/slidebox.py -> build/lib.macosx-10.15-x86_64-2.7/reportlab/graphics/charts
copying src/reportlab/graphics/charts/doughnut.py -> build/lib.macosx-10.15-x86_64-2.7/reportlab/graphics/charts
copying src/reportlab/graphics/charts/piecharts.py -> build/lib.macosx-10.15-x86_64-2.7/reportlab/graphics/charts
copying src/reportlab/fonts/_ab_____.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/_ai_____.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/_a______.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/cobo____.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/cob_____.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/com_____.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/coo_____.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/_ebi____.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/_eb_____.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/_ei_____.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/_er_____.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/sy______.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/zd______.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/zx______.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/fonts/zy______.pfb -> build/lib.macosx-10.15-x86_64-2.7/reportlab/fonts
copying src/reportlab/lib/hyphen.mashed -> build/lib.macosx-10.15-x86_64-2.7/reportlab/lib
running build_ext
building 'reportlab.lib._rl_accel' extension
creating build/temp.macosx-10.15-x86_64-2.7
creating build/temp.macosx-10.15-x86_64-2.7/private
creating build/temp.macosx-10.15-x86_64-2.7/private/var
creating build/temp.macosx-10.15-x86_64-2.7/private/var/folders
creating build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6
creating build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn
creating build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T
creating build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd
creating build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab
creating build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src
creating build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons
creating build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel
clang -fno-strict-aliasing -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/andynguyen/.pyenv/versions/2.7.15/include/python2.7 -c /private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/_rl_accel.c -o build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/_rl_accel.o
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/_rl_accel.c:122:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
inData = PyBytes_AsString(_o1);
^ ~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/_rl_accel.c:133:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
inData = PyBytes_AsString(inObj);
^ ~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/_rl_accel.c:222:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
inData = PyBytes_AsString(_o1);
^ ~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/_rl_accel.c:233:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
inData = PyBytes_AsString(inObj);
^ ~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/_rl_accel.c:956:82: warning: format specifies type 'int' but the argument has type 'Py_ssize_t' (aka 'long') [-Wformat]
PyErr_Format(PyExc_AttributeError,"Bad size %d('%s') for attribute character",PyBytes_GET_SIZE(value),v);
~~ ^~~~~~~~~~~~~~~~~~~~~~~
%zd
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/_rl_accel.c:58:28: note: expanded from macro 'PyBytes_GET_SIZE'
# define PyBytes_GET_SIZE PyString_GET_SIZE
^
/Users/andynguyen/.pyenv/versions/2.7.15/include/python2.7/stringobject.h:92:32: note: expanded from macro 'PyString_GET_SIZE'
#define PyString_GET_SIZE(op) Py_SIZE(op)
^~~~~~~~~~~
/Users/andynguyen/.pyenv/versions/2.7.15/include/python2.7/object.h:116:33: note: expanded from macro 'Py_SIZE'
#define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
clang -bundle -undefined dynamic_lookup -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl@1.1/lib -L/Users/andynguyen/.pyenv/versions/2.7.15/lib build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/_rl_accel.o -o build/lib.macosx-10.15-x86_64-2.7/reportlab/lib/_rl_accel.so
building 'reportlab.lib.pyHnj' extension
clang -fno-strict-aliasing -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/andynguyen/.pyenv/versions/2.7.15/include/python2.7 -c /private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/pyHnjmodule.c -o build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/pyHnjmodule.o
clang -fno-strict-aliasing -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/andynguyen/.pyenv/versions/2.7.15/include/python2.7 -c /private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/hyphen.c -o build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/hyphen.o
clang -fno-strict-aliasing -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/andynguyen/.pyenv/versions/2.7.15/include/python2.7 -c /private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/hnjalloc.c -o build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/hnjalloc.o
clang -bundle -undefined dynamic_lookup -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl@1.1/lib -L/Users/andynguyen/.pyenv/versions/2.7.15/lib build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/pyHnjmodule.o build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/hyphen.o build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/rl_accel/hnjalloc.o -o build/lib.macosx-10.15-x86_64-2.7/reportlab/lib/pyHnj.so
building 'reportlab.graphics._renderPM' extension
creating build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM
creating build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1
creating build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/libart_lgpl
clang -fno-strict-aliasing -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DLIBART_COMPILATION -DLIBART_VERSION="2.3.12" -I/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM -I/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/libart_lgpl -I/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1 -I/Users/andynguyen/.pyenv/versions/2.7.15/include/python2.7 -c /private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/_renderPM.c -o build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/_renderPM.o
clang -fno-strict-aliasing -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DLIBART_COMPILATION -DLIBART_VERSION="2.3.12" -I/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM -I/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/libart_lgpl -I/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1 -I/Users/andynguyen/.pyenv/versions/2.7.15/include/python2.7 -c /private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-parset1.c -o build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-parset1.o
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-parset1.c:604:28: warning: for loop has empty body [-Wempty-body]
for (i = 0; i < size; i++);
^
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-parset1.c:604:28: note: put the semicolon on a separate line to silence this warning
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-parset1.c:710:1: warning: function 'print_value_deep' is not needed and will not be emitted [-Wunneeded-internal-declaration]
print_value_deep (Gt1PSContext *psc, Gt1Value *val, int nest)
^
2 warnings generated.
clang -fno-strict-aliasing -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DLIBART_COMPILATION -DLIBART_VERSION="2.3.12" -I/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM -I/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/libart_lgpl -I/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1 -I/Users/andynguyen/.pyenv/versions/2.7.15/include/python2.7 -c /private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-dict.c -o build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-dict.o
clang -fno-strict-aliasing -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DLIBART_COMPILATION -DLIBART_VERSION="2.3.12" -I/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM -I/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/libart_lgpl -I/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1 -I/Users/andynguyen/.pyenv/versions/2.7.15/include/python2.7 -c /private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-namecontext.c -o build/temp.macosx-10.15-x86_64-2.7/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-namecontext.o
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-namecontext.c:100:9: error: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration]
len = strlen (s);
^
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-namecontext.c:100:9: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-namecontext.c:102:3: error: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
memcpy (new, s, len);
^
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-namecontext.c:102:3: note: include the header <string.h> or explicitly provide a declaration for 'memcpy'
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-namecontext.c:172:10: error: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-declaration]
if (!strcmp (nc->table[i & mask].name, name))
^
/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/src/rl_addons/renderPM/gt1/gt1-namecontext.c:172:10: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
3 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------
Rolling back uninstall of reportlab
Command "/Users/andynguyen/.pyenv/versions/2.7.15/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/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/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-f2sZ79-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-build-L1Xdbd/reportlab/
You are using pip version 9.0.3, however version 20.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
更新: 错误看起来很相似,只是底部现在看起来像
In file included from /private/var/folders/x6/wyq9wg250c7d7s933sp1fgtw0000gn/T/pip-install-cmDQfb/reportlab/src/rl_addons/rl_accel/_rl_accel.c:8:
/opt/anaconda3/envs/aggvenv/include/python2.7/Python.h:33:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^~~~~~~~~
1 error generated.
error: command 'x86_64-apple-darwin13.4.0-clang' failed with exit status 1
【问题讨论】:
你尝试升级 pip 了吗? @CForce99 我做到了。一直在这几个小时大声笑 你仍然得到同样的错误? 类似@CForce99 我添加了一个更新 您是否尝试通过 Anaconda 下载它? 【参考方案1】:安装 xcode。
xcode-select --install
如果您仍有问题,请查看以下post 以获取所有后续说明。
【讨论】:
它没有。我已经安装了这个我什至尝试卸载和安装。当我在我的 virtualenv 中时,我似乎得到了这个。不在venv中时我可以很好地安装reportlab==3.0 我正在跟进,你还有这个问题吗? 您好,我可以通过卸载我的 CommandLineTools 并重新安装然后创建指向 MacOSX sdk 文件的符号链接来解决它。 @AndyNguyen:你能提供一个详细的过程吗? @AndyNguyen。感谢更新。我实际上所做的是下载源代码并在相关的 C 文件中添加缺少的“#include以上是关于尝试“pip install reportlab==3.0”,我得到一个包含标头 <string.h> 的疯狂长错误的主要内容,如果未能解决你的问题,请参考以下文章
如何处理 Swift 的“尝试”?导致“尝试的结果?未使用”? [复制]