General Setup
- XCode command line tool
Directory convention
~/Local/
~/Work/
~/Learn/
Mac Configuration file
.bash_profile
.ssh/know_hosts
Setup Python environment
Use Anaconda to manage python environment and package
Install Anaconda under ~/Local/anaconda
After install Anaconda (doesn't matter if Anaconda or Anaconda3), create Python2 or 3 environment by:
create Python 3 environment
$ conda create -n py35 python=3.5 anaconda
$ source activate py35
$ source deactivate
Here, the ‘py35’ is the name of the environment you want to create, and ‘anaconda’ is the meta-package that includes all of the actual Python packages comprising the Anaconda distribution. When creating a new environment and installing Anaconda, you can specify the exact package and Python versions, for example, numpy=1.7 or python=3.5.
Create Python 2 environment
$ conda create -n py27 python=2.7 anaconda
$ source activate py27
$ source deactivate