Anything is fine for the time being, so Anaconda must be included.
conda create -n Virtual environment name python = x.x List the packages to install (delimiter is space)
Example)
conda create -n py27 python=2.7 anaconda
You will be asked Proceed ([y] | n) ?, so press y
conda info -e
# conda environments:
#
chainer /home/user/anaconda2/envs/chainer
py27 /home/user/anaconda2/envs/py27
py35 /home/user/anaconda2/envs/py35
tensorflow /home/user/anaconda2/envs/tensorflow
root * /home/user/anaconda2
conda remove -n py27 --all
conda info -e
# conda environments:
#
chainer /home/user/anaconda2/envs/chainer
py35 /home/user/anaconda2/envs/py35
tensorflow /home/user/anaconda2/envs/tensorflow
root * /home/user/anaconda2
user@MYPC:~$ source activate py27
discarding /home/user/anaconda2/bin from PATH
prepending /home/user/anaconda2/envs/py27/bin to PATH
(py27)user@MYPC:~$ conda info -e
# conda environments:
#
chainer /home/user/anaconda2/envs/chainer
py27 * /home/user/anaconda2/envs/py27
py35 /home/user/anaconda2/envs/py35
tensorflow /home/user/anaconda2/envs/tensorflow
root /home/user/anaconda2
For windows, use ʻactivate py27` to activate
(py27)user@MYPC:~$ source deactivate
discarding /home/user/anaconda2/envs/py27/bin from PATH
user@MYPC:~$ conda info -e
# conda environments:
#
chainer /home/user/anaconda2/envs/chainer
py27 /home/user/anaconda2/envs/py27
py35 /home/user/anaconda2/envs/py35
tensorflow /home/user/anaconda2/envs/tensorflow
root * /home/user/anaconda2
For windows, deactivate with deactivate
Details are written in the following document conda document
testing environment: OS: Ubuntu 14.04 LTE
Recommended Posts