閲覧ありがとうございます。
[pip install ○○○]でnumpyやscipyといったモジュールはインストールできるのですが、pyaudioだけがどうしても出来ません。
[pip install pyaudio]を実行すると下記の様なエラーメッセージが表示されます。
どうすればよろしいのでしょうか?
回答よろしくお願いいたします。
環境
OS:Ubuntu 19.10
Pythonバージョン:3.8.1
pipバージョン:20.0.2
エラーメッセージ
bash
1(Python3.8.1) r34lity@R34lity-CFLX6:~/Python3.8.1$ pip install pyaudio 2Collecting pyaudio 3 Using cached PyAudio-0.2.11.tar.gz (37 kB) 4 ERROR: Command errored out with exit status 1: 5 command: /home/r34lity/.pyenv/versions/3.8.1/envs/Python3.8.1/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vp3cidl6/pyaudio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vp3cidl6/pyaudio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-vp3cidl6/pyaudio/pip-egg-info 6 cwd: /tmp/pip-install-vp3cidl6/pyaudio/ 7 Complete output (11 lines): 8 Traceback (most recent call last): 9 File "<string>", line 1, in <module> 10 File "/home/r34lity/.pyenv/versions/3.8.1/envs/Python3.8.1/lib/python3.8/site-packages/setuptools/__init__.py", line 19, in <module> 11 from setuptools.dist import Distribution, Feature 12 File "/home/r34lity/.pyenv/versions/3.8.1/envs/Python3.8.1/lib/python3.8/site-packages/setuptools/dist.py", line 36, in <module> 13 from setuptools import windows_support 14 File "/home/r34lity/.pyenv/versions/3.8.1/envs/Python3.8.1/lib/python3.8/site-packages/setuptools/windows_support.py", line 2, in <module> 15 import ctypes 16 File "/home/r34lity/.pyenv/versions/3.8.1/lib/python3.8/ctypes/__init__.py", line 7, in <module> 17 from _ctypes import Union, Structure, Array 18 ModuleNotFoundError: No module named '_ctypes' 19 ---------------------------------------- 20ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. 21
試したこと
- PortAudioは導入しています。
- 環境はpipのみでcondaは導入しておりません。
回答2件
あなたの回答
tips
プレビュー