Installing guppy with pip3 problems

I am trying to install guppy . My program uses python3, so I should use pip3 exclusively. When I run:

pip3 install guppy 

I get:

 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 

I tried to do this even if it was not the same and exported gcc and g ++:

 ➜ ~ export CC=gcc ➜ ~ export CXX=g++ 

Run again:

 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 

Most who have this problem used sudo apt-get python-dev or something similar to solve this problem, I could not find the equivalent for Mac. Is there any way to solve this problem?

+15
source share
2 answers

Unfortunately, it seems that the guppy library only works for Python 2.x. An alternative might be objgraph

+16
source

Try installing guppy3 a guppy branch that supports Python 3:

 pip3 install guppy3 
+1
source

All Articles