[英]issues installing mplcursors 'pip3 install mplcursors
[英]Installing guppy with pip3 issues
我正在尝试安装孔雀鱼 。 我的程序使用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
我尝试过做这个 ,甚至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 3的guppy的guppy3 fork:
pip3 install guppy3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.