简体   繁体   中英

error in installing a module or package or something in python

I am trying to install pyaudio module in my terminal for python, and I got this error.

rc/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory error: command 'C:\Program Files\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe' failed with exit status 2

Help me please

If you are targeting native Win32 Python, you will need either MinGW (via Cygwin) or Microsoft Visual Studio

pyaudio compilation docs

Try this

  1. pip install pipwin

  2. pipwin install pyaudio

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM