使用 pip3 问题安装 guppy [英] Installing guppy with pip3 issues

查看:153
本文介绍了使用 pip3 问题安装 guppy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装 guppy.我的程序使用 python3,所以我必须专门使用 pip3.当我跑步时:

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

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

我尝试过这个,即使它不一样并且导出了 gcc 和 g++:

I tried doing this, even thourgh it wasn't the same and exported gcc and 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 的等效项.有没有办法解决这个问题?

Most who had this issue used sudo apt-get python-dev or something of the like to resolve this issue, I couldn't find an equivalent for Mac. Is there a way to resolve this issue?

推荐答案

不幸的是,guppy 库似乎只适用于 Python 2.x.另一种可能是 objgraph

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

这篇关于使用 pip3 问题安装 guppy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆