質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
機械学習

機械学習は、データからパターンを自動的に発見し、そこから知能的な判断を下すためのコンピューターアルゴリズムを指します。人工知能における課題のひとつです。

Q&A

解決済

1回答

2308閲覧

magentaのインストール時にエラーが出ます

TomSierra

総合スコア9

機械学習

機械学習は、データからパターンを自動的に発見し、そこから知能的な判断を下すためのコンピューターアルゴリズムを指します。人工知能における課題のひとつです。

0グッド

0クリップ

投稿2021/12/07 11:39

OS windows11 
wsl2 ubuntu20.04
やったこと

pip install tensorflow pip install magenta

エラーメッセージ

ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-05t2323o/rtmidi-python_349eb46b114c4fb2879ba5698bc04b01/setup.py'"'"'; __file__='"'"'/tmp/pip-install-05t2323o/rtmidi-python_349eb46b114c4fb2879ba5698bc04b01/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-bj4ryvqx/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/tomsierra/.local/include/python3.8/rtmidi-python cwd: /tmp/pip-install-05t2323o/rtmidi-python_349eb46b114c4fb2879ba5698bc04b01/ Complete output (105 lines): running install running build running build_ext building 'rtmidi_python' extension creating build creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/RtMidi x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-stomsierra@DESKTOP:~$ e-time -D_FORTIFY_SOURCE=2 -fPIC -D__LINUX_ALSA__ -I/usr/include/python3.8 -c rtmidi_python.cpp -o build/temp.linux-x86_64-3.8/rtmidi_python.o rtmidi_python.cpp: In function ‘PyObject* PyInit_rtmidi_python()’: rtmidi_python.cpp:2932:39: warning: ‘_typeobject::tp_print’ is deprecated [-Wdeprecated-declarations] 2932 | __pyx_type_13rtmidi_python_MidiBase.tp_print = 0; | ^~~~~~~~ In file included from /usr/include/python3.8/object.h:746, from /usr/include/python3.8/pytime.h:6, from /usr/include/python3.8/Python.h:85, from rtmidi_python.cpp:16: /usr/include/python3.8/cpython/object.h:260:30: note: declared here 260 | Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); | ^~~~~~~~ rtmidi_python.cpp:2932:39: warning: ‘_typeobject::tp_print’ is deprecated [-Wdeprecated-declarations] 2932 | __pyx_type_13rtmidi_python_MidiBase.tp_print = 0; | ^~~~~~~~ In file included from /usr/include/python3.8/object.h:746, from /usr/include/python3.8/pytime.h:6, from /usr/include/python3.8/Python.h:85, from rtmidi_python.cpp:16: /usr/include/python3.8/cpython/object.h:260:30: note: declared here 260 | Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); | ^~~~~~~~ rtmidi_python.cpp:2932:39: warning: ‘_typeobject::tp_print’ is deprecated [-Wdeprecated-declarations] 2932 | __pyx_type_13rtmidi_python_MidiBase.tp_print = 0; | ^~~~~~~~ In file included from /usr/include/python3.8/object.h:746, from /usr/include/python3.8/pytime.h:6, from /usr/include/python3.8/Python.h:85, from rtmidi_python.cpp:16: /usr/include/python3.8/cpython/object.h:260:30: note: declared here 260 | Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); | ^~~~~~~~ rtmidi_python.cpp:2941:38: warning: ‘_typeobject::tp_print’ is deprecated [-Wdeprecated-declarations] 2941 | __pyx_type_13rtmidi_python_MidiOut.tp_print = 0; | ^~~~~~~~ In file included from /usr/include/python3.8/object.h:746, from /usr/include/python3.8/pytime.h:6, from /usr/include/python3.8/Python.h:85, from rtmidi_python.cpp:16: /usr/include/python3.8/cpython/object.h:260:30: note: declared here 260 | Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); | ^~~~~~~~ rtmidi_python.cpp:2941:38: warning: ‘_typeobject::tp_print’ is deprecated [-Wdeprecated-declarations] 2941 | __pyx_type_13rtmidi_python_MidiOut.tp_print = 0; | ^~~~~~~~ In file included from /usr/include/python3.8/object.h:746, from /usr/include/python3.8/pytime.h:6, from /usr/include/python3.8/Python.h:85, from rtmidi_python.cpp:16: /usr/include/python3.8/cpython/object.h:260:30: note: declared here 260 | Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); | ^~~~~~~~ rtmidi_python.cpp:2941:38: warning: ‘_typeobject::tp_print’ is deprecated [-Wdeprecated-declarations] 2941 | __pyx_type_13rtmidi_python_MidiOut.tp_print = 0; | ^~~~~~~~ In file included from /usr/include/python3.8/object.h:746, from /usr/include/python3.8/pytime.h:6, from /usr/include/python3.8/Python.h:85, from rtmidi_python.cpp:16: /usr/include/python3.8/cpython/object.h:260:30: note: declared here 260 | Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); | ^~~~~~~~ rtmidi_python.cpp:2950:37: warning: ‘_typeobject::tp_print’ is deprecated [-Wdeprecated-declarations] 2950 | __pyx_type_13rtmidi_python_MidiIn.tp_print = 0; | ^~~~~~~~ In file included from /usr/include/python3.8/object.h:746, from /usr/include/python3.8/pytime.h:6, from /usr/include/python3.8/Python.h:85, from rtmidi_python.cpp:16: /usr/include/python3.8/cpython/object.h:260:30: note: declared here 260 | Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); | ^~~~~~~~ rtmidi_python.cpp:2950:37: warning: ‘_typeobject::tp_print’ is deprecated [-Wdeprecated-declarations] 2950 | __pyx_type_13rtmidi_python_MidiIn.tp_print = 0; | ^~~~~~~~ In file included from /usr/include/python3.8/object.h:746, from /usr/include/python3.8/pytime.h:6, from /usr/include/python3.8/Python.h:85, from rtmidi_python.cpp:16: /usr/include/python3.8/cpython/object.h:260:30: note: declared here 260 | Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); | ^~~~~~~~ rtmidi_python.cpp:2950:37: warning: ‘_typeobject::tp_print’ is deprecated [-Wdeprecated-declarations] 2950 | __pyx_type_13rtmidi_python_MidiIn.tp_print = 0; | ^~~~~~~~ In file included from /usr/include/python3.8/object.h:746, from /usr/include/python3.8/pytime.h:6, from /usr/include/python3.8/Python.h:85, from rtmidi_python.cpp:16: /usr/include/python3.8/cpython/object.h:260:30: note: declared here 260 | Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); | ^~~~~~~~ x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -D__LINUX_ALSA__ -I/usr/include/python3.8 -c RtMidi/RtMidi.cpp -o build/temp.linux-x86_64-3.8/RtMidi/RtMidi.o RtMidi/RtMidi.cpp:1048:10: fatal error: alsa/asoundlib.h: No such file or directory 1048 | #include <alsa/asoundlib.h> | ^~~~~~~~~~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-05t2323o/rtmidi-python_349eb46b114c4fb2879ba5698bc04b01/setup.py'"'"'; __file__='"'"'/tmp/pip-install-05t2323o/rtmidi-python_349eb46b114c4fb2879ba5698bc04b01/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-bj4ryvqx/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/tomsierra/.local/include/python3.8/rtmidi-python Check the logs for full command output

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

error

1 RtMidi/RtMidi.cpp:1048:10: fatal error: alsa/asoundlib.h: No such file or directory 2 1048 | #include <alsa/asoundlib.h> 3 | ^~~~~~~~~~~~~~~~~~ 4 compilation terminated. 5 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 6

では、alsa/asoundlib.hがないといっています。

asoundlib.hが無い? make時のエラーについてを見て、alsa/asoundlib.hを入れましょう。

投稿2021/12/07 11:50

ppaul

総合スコア24666

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

TomSierra

2021/12/07 12:18

sudo apt-get update sudo apt-get install libasound2-dev-armel-cross を実行したのですが解決しませんでした。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問