python ERROR: Command errored out with exit status 1
python projeme pyaudio modülünü eklemeye çalışırken hata alıyorum bunu nasıl çözebilirim?
haranın tamamı :
ERROR: Command errored out with exit status 1:
command: 'c:\users\egemen\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Egemen\\AppData\\Local\\Temp\\pip-install-832m_b_x\\pyaudio_afb4bcad1e214842b57c36d4c16fbb55\\setup.py'"'"'; __file__='"'"'C:\\Users\\Egemen\\AppData\\Local\\Temp\\pip-install-832m_b_x\\pyaudio_afb4bcad1e214842b57c36d4c16fbb55\\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\Egemen\AppData\Local\Temp\pip-record-v4pmff2x\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\egemen\appdata\local\programs\python\python39\Include\PyAudio'
cwd: C:\Users\Egemen\AppData\Local\Temp\pip-install-832m_b_x\pyaudio_afb4bcad1e214842b57c36d4c16fbb55\
Complete output (9 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
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\egemen\appdata\local\programs\python\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Egemen\\AppData\\Local\\Temp\\pip-install-832m_b_x\\pyaudio_afb4bcad1e214842b57c36d4c16fbb55\\setup.py'"'"'; __file__='"'"'C:\\Users\\Egemen\\AppData\\Local\\Temp\\pip-install-832m_b_x\\pyaudio_afb4bcad1e214842b57c36d4c16fbb55\\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\Egemen\AppData\Local\Temp\pip-record-v4pmff2x\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\egemen\appdata\local\programs\python\python39\Include\PyAudio' Check the logs for full command output.
pyaudio yüklemeye çalışırken kullandığım komut :
pip install PyAudio
öncelikle bu linke giderek kendi sistemine ve python sürümüne uygun olan dosyayı manuel olarak indirmen gerekiyor.
Sonrasında dosyayı indirdiğin klasoru terminalde aç ve ardından bu komutu çalıştır.
pip install indirdigin-dosyanın-adı
örnek vermek gerekirse
pip install PyAudio‑0.2.11‑cp39‑cp39‑win_amd64.whl
umarım yardımcı olacaktır