macOS Mojave 10.14(xcodeインストール済み,Python 3.6.6 :: Anacond インストール済み)にpymunkをインストールするためにコマンド pip install pymunkを行なったら以下のエラーメッセージが発生しました。どなたか解決方法をご教示頂けないでしょうか?
発生している問題・エラーメッセージ
$ pip install pymunk
Collecting pymunk
(中略)
"_sysctlbyname", referenced from:
_cpHastySpaceSetThreads in cpHastySpace.o
"_vfprintf", referenced from:
_cpMessage in chipmunk.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'cc' failed with exit status 1
Failed building wheel for pymunk
Running setup.py clean for pymunk
Failed to build pymunk
Installing collected packages: pymunk
Running setup.py install for pymunk ... error
Complete output from command /anaconda3/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/ln/sddgtwz17jvfgn5hjby2sljh0000gn/T/pip-install-job7y88d/pymunk/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/ln/sddgtwz17jvfgn5hjby2sljh0000gn/T/pip-record-dpm7r4q_/install-record.txt --single-version-externally-managed --compile:
running install
running build
(中略)
_cpvforangle in chipmunk.o
"_sysctlbyname", referenced from:
_cpHastySpaceSetThreads in cpHastySpace.o
"_vfprintf", referenced from:
_cpMessage in chipmunk.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'cc' failed with exit status 1
Command "/anaconda3/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/ln/sddgtwz17jvfgn5hjby2sljh0000gn/T/pip-install-job7y88d/pymunk/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/ln/sddgtwz17jvfgn5hjby2sljh0000gn/T/pip-record-dpm7r4q_/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/ln/sddgtwz17jvfgn5hjby2sljh0000gn/T/pip-install-job7y88d/pymunk/
以上
追記:別のマシンで
Python 3.6.0 :: Anaconda 4.3.0 (x86_64)の環境だと
エラーが起きずインストールできました.しかし,
Python 3.6.6 :: Anacond
だと上記のエラーが起きました.
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。