Anaconda

python virtual environment: creat an isolated environment for each python version set, similar with pyenv.

Installation:

For Windows:

Anaconda navigator is a visualization tool for setting up environment and installing packages under each environment.

Python IDEs like Jupyter notebook and spyder can all be treated as packages under each environment.

For Linux:

bash Anaconda2-4.3.1-Linux-x86_64.sh

Environment

list: conda info —envs

create: conda create --name $newenv python=2.7 (if copy, use —clone $oldenv)

activate: source activate $newenv

revert: source deactivate

delete: conda remove —name $newenv —all

package

list: conda list

search: conda search pack

install new packages:

  1. conda install pack
  2. conda install pack=1.8.2 # install certain version
  3. conda install —name env pack
  4. search on http://anaconda.org/, no need to register
  5. pip install pack
  6. install from local pack

Tips: check available pythons: conda search —full-name python