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:
- conda install pack
- conda install pack=1.8.2 # install certain version
- conda install —name env pack
- search on http://anaconda.org/, no need to register
- pip install pack
- install from local pack
Tips: check available pythons: conda search —full-name python