Closed h35h4n9 closed 3 years ago
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wkgouxao/simpleaudio_48766b3dd2c04c3d9ea24a1b79691e48/setup.py'"'"'; file='"'"'/tmp/pip-install-wkgouxao/simpleaudio_48766b3dd2c04c3d9ea24a1b79691e48/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-xsbthron/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/simpleaudio Check the logs for full command output.
解决了吗,我也有这个问题
试试pip3 install exp10it -U --no-cache-dir
pip3 install exp10it -U --no-cache-dir
cwd: /tmp/pip-install-wkgouxao/simpleaudio_48766b3dd2c04c3d9ea24a1b79691e48/
Complete output (26 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/simpleaudio
copying simpleaudio/init.py -> build/lib.linux-x86_64-3.7/simpleaudio
copying simpleaudio/shiny.py -> build/lib.linux-x86_64-3.7/simpleaudio
copying simpleaudio/functionchecks.py -> build/lib.linux-x86_64-3.7/simpleaudio
creating build/lib.linux-x86_64-3.7/simpleaudio/test_audio
copying simpleaudio/test_audio/c.wav -> build/lib.linux-x86_64-3.7/simpleaudio/test_audio
copying simpleaudio/test_audio/e.wav -> build/lib.linux-x86_64-3.7/simpleaudio/test_audio
copying simpleaudio/test_audio/g.wav -> build/lib.linux-x86_64-3.7/simpleaudio/test_audio
copying simpleaudio/test_audio/left_right.wav -> build/lib.linux-x86_64-3.7/simpleaudio/test_audio
copying simpleaudio/test_audio/notes_2_16_44.wav -> build/lib.linux-x86_64-3.7/simpleaudio/test_audio
running build_ext
building 'simpleaudio._simpleaudio' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/c_src
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 -DDEBUG=0 -I/usr/include/python3.7m -c c_src/simpleaudio_alsa.c -o build/temp.linux-x86_64-3.7/c_src/simpleaudio_alsa.o
In file included from c_src/simpleaudio_alsa.c:7:
c_src/simpleaudio.h:10:10: fatal error: Python.h: 没有那个文件或目录
10
~~~~~compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
cwd: /tmp/pip-install-wkgouxao/simpleaudio_48766b3dd2c04c3d9ea24a1b79691e48/
Complete output (26 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/simpleaudio
copying simpleaudio/init.py -> build/lib.linux-x86_64-3.7/simpleaudio
copying simpleaudio/shiny.py -> build/lib.linux-x86_64-3.7/simpleaudio
copying simpleaudio/functionchecks.py -> build/lib.linux-x86_64-3.7/simpleaudio
creating build/lib.linux-x86_64-3.7/simpleaudio/test_audio
copying simpleaudio/test_audio/c.wav -> build/lib.linux-x86_64-3.7/simpleaudio/test_audio
copying simpleaudio/test_audio/e.wav -> build/lib.linux-x86_64-3.7/simpleaudio/test_audio
copying simpleaudio/test_audio/g.wav -> build/lib.linux-x86_64-3.7/simpleaudio/test_audio
copying simpleaudio/test_audio/left_right.wav -> build/lib.linux-x86_64-3.7/simpleaudio/test_audio
copying simpleaudio/test_audio/notes_2_16_44.wav -> build/lib.linux-x86_64-3.7/simpleaudio/test_audio
running build_ext
building 'simpleaudio._simpleaudio' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/c_src
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 -DDEBUG=0 -I/usr/include/python3.7m -c c_src/simpleaudio_alsa.c -o build/temp.linux-x86_64-3.7/c_src/simpleaudio_alsa.o
In file included from c_src/simpleaudio_alsa.c:7:
c_src/simpleaudio.h:10:10: fatal error: Python.h: 没有那个文件或目录
10
~~~~~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 sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wkgouxao/simpleaudio_48766b3dd2c04c3d9ea24a1b79691e48/setup.py'"'"'; file='"'"'/tmp/pip-install-wkgouxao/simpleaudio_48766b3dd2c04c3d9ea24a1b79691e48/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-xsbthron/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/simpleaudio Check the logs for full command output.