guppyをインストールしようとしています。私のプログラムはpython3を使用しているので、pip3を排他的に使用する必要があります。私は実行すると: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
私はそれは同じではありませんでしたとgccとg ++を輸出してもthourgh、thisをやってみました:
➜ ~ 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
ほとんどのwこの問題にsudo apt-get python-dev
などの問題を使用してこの問題を解決した場合、Mac用の同等のものを見つけることができませんでした。この問題を解決する方法はありますか?
本当にヘッダーがありますか? 'python3-config --include'を実行してください。 – mic4ael
@ mic4ael:あなたが必要とするヘッダは本当にわかりませんが、実行すると' -I/usr/local/Cellar/python3/3.5.2_1 /フレームワーク/ Python.framework/Versions/3.5/include/python3.5m -I/usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.framework/Versions/3.5/include/python3.5m'にあります。それが正しいか? – Dair
申し訳ありません私はPython開発ヘッダーについて考えていました – mic4ael