First of all my project is setup with venv
and please note that I am unable to use conda
.
I am having issues installing PyAudio
via PyCharms on Windows. I have compiled the PortAudio
files by myself following various other guides. Now I am trying to install it via the Python Interpreter in PyCharm and can't get it to work. Have tried adding the Include directory in the options via --global-option="-I/path-here"
, doesn't get recognized, same with adding it to the Interpreter Paths.
src/_portaudiomodule.c(29): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "portaudio.h": No such file or directory
I've had no issues on Linux, since installing PortAudio is simple and the PyAudio installation then works via PyCharm.
So, whilst writing this in complete desparation and before I throw the effort away: I switched to Python 3.6 (was using 3.7), installed PyAudio on first try without any problems. So if anyone comes across this problem, please try this. It even says that PyAudio Version 0.2.11
only supports Python up to 3.6.
You can manually download the PyAudio module and install it from here: https://pypi.org/project/PyAudio/#files
Part 1. In PyCharm:
Part 2. For windows 10:
Part 3. Installing PyAudio
Go to "Start" -> "cmd" -> type "pip install pyaudio" and push "Enter" button. That's all.
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.