Pandas -- Python & Anaconda & Pandas Installing


OSX installed Python 2.7

$python --version
Python 2.7.10 :: Anaconda 2.4.0 (x86_64)

Install different version of python

$conda create --name snakes python=3
$source activate snakes
$python --version
Python 3.5.0 :: Continuum Analytics, Inc.


Download Anaconda from Anaconda2-2.4.0-MacOSX-x86_64.pkg, install it to user home. $conda –version conda 3.18.3

$conda update conda
$conda --version
conda 3.18.8

create an environment

$conda create --name snowflakes biopython

activate an environment

$source activate snowflakes
$conda list

deactivate an environment

$source deactivate

list all environments

$conda info --envs
# conda environments:
snakes                   /Users/xnpeng/anaconda/envs/snakes
snowflakes               /Users/xnpeng/anaconda/envs/snowflakes
root                  *  /Users/xnpeng/anaconda

make an exact copy of an enviroment

$conda create --name flows --clone snowflakes

delete an environment

$conda remove --name flowers --all

check python version

$conda search --full-name python

search for new package

$conda search beautifulsoup4

install new package to environment

$conda install --name snakes beautifulsoup4
$conda list


to current environment
$conda install glueviz 
$conda list

install package with pip

$pip install see
$conda list


remove packages,environment, or conda

$conda remove --name bunnies iopro
$conda remove --name bunnies --all
$rm -rf ~/anaconda    

#install pandas $conda install pandas $conda list pandas 0.17.0 np110py27_0 defaults


#install glueviz $conda install glueviz image

Written on December 5, 2015