How to add python module to anaconda environment

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.

environment

$ python -V
Python 2.7.11 :: Anaconda 2.5.0 (64-bit)

OS: Ubuntu 15.04

Confirm that the module is already included

$ conda list

If not included, add

Normal module addition method

$ conda install <Module name>

Normally this is fine, but if it is not in the conda package (such as pyaudio), use the following method.

If not in the conda package

$ 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.

For pyaudio

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.

The site that I used as a reference

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

How to add python module to anaconda environment
How to add a Python module search path
How to resolve SSL module errors in Anaconda environment
How to install python using anaconda
Change Python 64bit environment to 32bit environment with Anaconda
How to access environment variables in Python
[Python] How to display random numbers (random module)
python3 How to install an external module
How to prepare Python development environment [Mac]
[Python] How to deal with module errors
Add a Python virtual environment to VSCode
How to install Python
How to install python
How to create a Python virtual environment (venv)
To add a module to python put in Julialang
How to add Anaconda Powershell Prompt to Windows Terminal?
[Python] How to install OpenCV on Anaconda [Windows]
From Python environment construction to virtual environment construction with anaconda
Python + Anaconda + Pycharm environment construction
[2020.8 latest] How to install Python
[Python] [Django] How to use ChoiceField and how to add options
How to build an environment when you want to use python2.7 after installing Anaconda3
How to add help to HDA (with Python script bonus)
How Python module import works
python3: How to use bottle (2)
How to set up a Python environment using pyenv
Install Python environment with Anaconda
[Python] How to use list 1
How to update Python Tkinter to 8.6
Anaconda updated from 4.2.0 to 4.3.0 (python3.5 updated to python3.6)
How to use Python argparse
How to build a Django (python) environment on docker
Python: How to use pydub
[Python] How to use checkio
How to add page numbers to PDF files (in Python)
How to run Notepad ++ Python
How to change Python version
How to develop in Python
[python] How to judge scalar
[Python] How to use input ()
How to build a Python environment on amazon linux 2
How to use Python lambda
[Python] How to use virtualenv
python3: How to use bottle (3)
python3: How to use bottle
How to use Python bytes
How to build a new python virtual environment on Ubuntu
How to build a python2.7 series development environment with Vagrant
How to get into the python development environment with Vagrant
Overview of Python virtual environment and how to create it
How to write a Python class
[Python] How to FFT mp3 data
[Python] How to do PCA in Python
Python: How to use async with
How to use the optparse module
To add a C module to MicroPython ...
Anaconda python environment construction on Windows 10
[Python] How to derive nCk (ABC156-D)
[Python] How to use Pandas Series
How to collect images in Python
How to update Spyder in Anaconda