I put pyaudio this time, so I summarized it. By the way, depending on the version, pyaudio may be included by default. It wasn't in my environment.
$ python -V
Python 2.7.11 :: Anaconda 2.5.0 (64-bit)
OS: Ubuntu 15.04
$ conda list
If not included, add
$ conda install <Module name>
Normally this is fine, but if it is not in the conda package (such as pyaudio), use the following method.
$ source activate <Environment name created by anaconda>
$ pip install <Module name>
You can find the environment name created by anaconda by the following method.
$ conda info --envs
The one with an asterisk is the current environment, and the default is root.
In the case of pyaudio, when you do pip install, it is said that portaudio is not included, so I will install it.
$ sudo apt-get install portaudio19-dev
After that, you can do pip install pyaudio.
StackOverflow | Pyaudio installation error - 'command 'gcc' failed with exit status 1' http://stackoverflow.com/questions/5921947/pyaudio-installation-error-command-gcc-failed-with-exit-status-1 Add your own modules to your Anaconda environment http://datalove.hatenadiary.jp/entry/python/anaconda/how-to-install-3rd-party-module-into-anaconda Summary of how to use virtual environment with Anaconda's conda command http://minus9d.hatenablog.com/entry/2016/01/29/235916
Recommended Posts