用pip3问题安装孔雀鱼

时间:2016-08-09 20:11:11

标签: python python-3.x

我正在尝试安装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,即使它不一样,也导出了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的等效内容。有没有办法解决这个问题?

2 个答案:

答案 0 :(得分:13)

不幸的是,guppy库似乎只适用于Python 2.x.替代方案可以是objgraph

答案 1 :(得分:1)

尝试安装支持Python 3的guppy的guppy3分支:

pip3 install guppy3
相关问题