A
A
AntiYar2021-12-13 23:13:12
PyCharm
AntiYar, 2021-12-13 23:13:12

Can't install PyAudio in .What should I do?

Here is the error code.
Help me please.
I will be very glad.

ERROR: Command errored out with exit status 1:
     command: 'C:\Users\User\PycharmProjects\pythonProject1\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\T
emp\\pip-install-9_4pz9rj\\pyaudio_d95f6deb282d4b68b6a5593d4a80cd5d\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-9_4pz9rj\\pyaudio_d95f6deb282d4b68b6a5
593d4a80cd5d\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.re
ad().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\User\AppData\Local\Temp\pip-record-pjzsarru\install-record.t
xt' --single-version-externally-managed --compile --install-headers 'C:\Users\User\PycharmProjects\pythonProject1\venv\include\site\python3.9\PyAudio'
         cwd: C:\Users\User\AppData\Local\Temp\pip-install-9_4pz9rj\pyaudio_d95f6deb282d4b68b6a5593d4a80cd5d\
    Complete output (17 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.9
    copying src\pyaudio.py -> build\lib.win-amd64-3.9
    running build_ext
    building '_portaudio' extension
    creating build\temp.win-amd64-3.9
    creating build\temp.win-amd64-3.9\Release
    creating build\temp.win-amd64-3.9\Release\src
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -IC:\Users\User\Pycharm
Projects\pythonProject1\venv\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\WindowsApps\PythonSoftware
Foundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include -IC:\Program Files (x86)\Wind
ows Kits\10\include\10.0.16299.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um -IC:\Program Fi
les (x86)\Windows Kits\10\include\10.0.16299.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\cppwinrt /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.9\Release\s
rc/_portaudiomodule.obj
    _portaudiomodule.c
    C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2544.0_x64__qbz5n2kfra8p0\include\pyconfig.h(117): warning C4005: MS_WIN64: Ё§¬Ґ­Ґ­ЁҐ ¬ Єа®®ЇаҐ¤Ґ«Ґ­Ёп
    src/_portaudiomodule.c: note: б¬. ЇаҐ¤л¤г饥 ®ЇаҐ¤Ґ«Ґ­ЁҐ "MS_WIN64"
    src/_portaudiomodule.c(29): fatal error C1083: ЌҐ г¤ Ґвбп ®вЄалвм д ©« ўЄ«о祭ЁҐ: portaudio.h: No such file or directory,
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30037\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\User\PycharmProjects\pythonProject1\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C
:\\Users\\User\\AppData\\Local\\Temp\\pip-install-9_4pz9rj\\pyaudio_d95f6deb282d4b68b6a5593d4a80cd5d\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-9_4pz
9rj\\pyaudio_d95f6deb282d4b68b6a5593d4a80cd5d\\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 'C:\Users\User\AppData\Local\Temp\pip
-record-pjzsarru\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\User\PycharmProjects\pythonProject1\venv\include\site\python3.9\PyAudio' Che
ck the logs for full command output.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question