Using Ubuntu - mikec964/chelmbigstock GitHub Wiki
Setting up git
Install git
You can install git from Ubuntu Software Center but the version is a little old. To install the latest one, run commands below from terminal:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
Initialize git directory
Make a directory for git projects. Go to the directory and run this command:
git init
Installing Python
Actually python 2.7.6 comes with Ubuntu 14.04 by default. If you don't need packages for data analytic, you are all set.
Installing anaconda
If you install anaconda properly, you can easily switch python 2 and 3 back and forth. Here's how I installed it on my machine.
- Install anaconda
- Create python 3 environment on top of the installation
- Switch the environment between 2 and 3
1. Install anaconda
I used the full installer. Download it from http://continuum.io/downloads
Then run the command:
$ bash Anaconda-1.x.x-Linux-x86[_64].sh
This installs python 2.
2. Create python 3 environment
Restart the shell and run this command:
$ conda create -n py3k python=3 anaconda
py3k is the name of the python 3 environment. This sets up the python 3 environment but the default environment is still python 2.
3. Switch the environment between 2 and 3
To switch the environment from 2 to 3, run
$ source activate py3k
To switch back to 2, run
$ source deactivate