본문 바로가기

python

anaconda virtualenv setting using 'conda'


conda update

% conda update conda



Virtual environment settiing

% conda create -n mypyenv python=2.7 anaconda


===========================================================================

[changsu@localhost PHOTOMETRY]$ conda -V

conda 3.13.0

[changsu@localhost PHOTOMETRY]$ conda create -n ana_snpy python=2.7 anaconda

Fetching package metadata: ....

Solving package specifications: .

Package plan for installation in environment /home/changsu/anaconda/envs/ana_snpy:


The following NEW packages will be INSTALLED:


    _license:           1.1-py27_0       

    abstract-rendering: 0.5.1-np19py27_0 

    anaconda:           2.2.0-np19py27_0 

    argcomplete:        0.8.4-py27_0     

    astropy:            1.0.1-np19py27_0 

    bcolz:              0.8.1-np19py27_0 

    beautiful-soup:     4.3.2-py27_0     

    binstar:            0.10.1-py27_3    

    bitarray:           0.8.1-py27_0     

    blaze-core:         0.7.3-np19py27_0 

    blz:                0.6.2-np19py27_0 

    bokeh:              0.8.1-np19py27_1 


...

...

...

===========================================================================



Activate virtual environment 

% source activate mypyenv



Additional package install

% conda install -n mypyenv astropy

===========================================================================

[changsu@localhost PHOTOMETRY]$ source activate ana_snpy

discarding /home/changsu/anaconda/bin from PATH

prepending /home/changsu/anaconda/envs/ana_snpy/bin to PATH

(ana_snpy)[changsu@localhost PHOTOMETRY]$ 

(ana_snpy)[changsu@localhost PHOTOMETRY]$ 

(ana_snpy)[changsu@localhost PHOTOMETRY]$ 

(ana_snpy)[changsu@localhost PHOTOMETRY]$ 

(ana_snpy)[changsu@localhost PHOTOMETRY]$ 

(ana_snpy)[changsu@localhost PHOTOMETRY]$ conda install numpy=1.8.0

Fetching package metadata: ....

Solving package specifications: .

Package plan for installation in environment /home/changsu/anaconda/envs/ana_snpy:


The following packages will be UPDATED:


    pip:        6.0.8-py27_0 --> 7.0.3-py27_0

    python:     2.7.9-2      --> 2.7.10-0    

    setuptools: 14.3-py27_0  --> 17.0-py27_0 


The following packages will be DOWNGRADED:


    numpy:      1.9.2-py27_0 --> 1.8.0-py27_0


Proceed ([y]/n)? y


Unlinking packages ...

[      COMPLETE      ]|###################################################| 100%

Linking packages ...

[      COMPLETE      ]|###################################################| 100%

===========================================================================


Deactivate virtual environment

% source deactivate




Delete virtual environment

% conda remove -n mypyenv -all

'python' 카테고리의 다른 글

python ndarray flip rotation  (0) 2016.04.21
.pythonrc : python startup  (0) 2015.05.28
secat2reg.py  (0) 2015.05.12