Problems importing pyaudio

I recently bought a new laptop, and I moved files from my old laptop. I was working on a project in pycharm that used the pyaudio module, I tried to run it, and I got an error saying that there is no module called pyaudio.

I ran "apt-get install python-pyaudio", it was successful, but the error persisted. Then I downloaded pyaudio from my website and installed the package. The problem is still here, any ideas?

In addition, I changed the interpreter from 2.7 to 3 i if this is any help.

+4
source share
2 answers

In PyCharm, go to file > settings > project > project interpreter

python, . enter image description here + , .

enter image description here
PyAudio.

,

,

install package

. virtualenv, env . reset PyCharm.

+3

PyAudio

Python, PyCharm . .

+1

All Articles