簡體   English   中英

用pip3問題安裝孔雀魚

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM