Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 1.18 KB

File metadata and controls

72 lines (47 loc) · 1.18 KB

#Preparing python for development ##This useful in general; not only for this course

If python is not installed

Download and install using the installer appropriate for your OS.

Note: we use python 2.7 for this course.

Use a package manager

OS X: Install Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Linux: You are good to go.

Make sure you have pip

OS X:

brew install pip

Debian/Ubuntu:

sudo apt-get install python-pip

Fedora:

sudo yum install python-pip

Generally a good idea for python development on Linux

Debian/Ubuntu:

sudo apt-get install python-dev

Fedora:

sudo yum install python-devel

This will prevent some confusing issues where you can't install python packages.

Set up your virtual environment

Install virtualenv:

pip install virtualenv

Enter the following to create the virtualenv, and store it in the 'env' directory:

virtualenv env

Now, install the requirements:

pip install -r requirements.txt