I'm trying to import pyaudio
i installed portaudio
with the command brew install portaudio
and i installed pyaudio
with pip
now Im trying to import pyaudio
and python shows me the error
Could not import the PyAudio C module '_portaudio'
now when i try to follow the instructions of the answer of pyaudio could not import _portaudio
the portaudio tar doesn't have the install file
What can i do?
Python: 3.4
Operating system: Mac OSX the captain
Follow Step 3 in the link ( pyaudio could not import _portaudio ):
Open Terminal in the directory. Run the following command line one by one.
./configure
make
make install # you may need to be root
link
Then, portaudio will be installed. After this, please follow next steps in the link: Get the dependencies for pyaudio. Uninstall pyaudio and reinstall pyaudio.
If you are on Anaconda, try the following command. It worked for me:
conda install -c anaconda portaudio
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.