我正在尝试安装guppy。我的程序使用python3,所以我必须专门使用pip3。当我跑步时:
pip3 install guppy
我得到:
src/sets/sets.c:77:1: error: expected function body after function declarator
INITFUNC (void)
^
src/sets/sets.c:39:18: note: expanded from macro 'INITFUNC'
#define INITFUNC initsetsc
^
1 error generated.
error: command 'clang' failed with exit status 1
我试着做了this,即使是thourgh,它也不一样,并导出了gcc和g++:
➜ ~ export CC=gcc
➜ ~ export CXX=g++
再次运行:
src/sets/sets.c:77:1: error: expected function body after function declarator
INITFUNC (void)
^
src/sets/sets.c:39:18: note: expanded from macro 'INITFUNC'
#define INITFUNC initsetsc
^
1 error generated.
error: command 'gcc' failed with exit status 1
大多数有这个问题的人使用
sudo apt-get python-dev
或类似的方法来解决这个问题,我找不到一个与Mac相同的方法。有办法解决这个问题吗? 最佳答案
不幸的是,guppy
库似乎只适用于Python 2.x
关于python - 安装带有pip3问题的Guppy,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/49924237/