Skip to content

Instantly share code, notes, and snippets.

@whhsw
Last active March 6, 2016 08:11
Show Gist options
  • Select an option

  • Save whhsw/9444349 to your computer and use it in GitHub Desktop.

Select an option

Save whhsw/9444349 to your computer and use it in GitHub Desktop.
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install python (& pip)
brew install python;
pip install virtualenv;
#clone the repo
cd ~;
git clone git@github.com:Geniushjs/LintCode.git;
cd LintCode;
# Create Virtual environment:
virtualenv env;
# Activate the environment
. env/bin/activate;
# Install necessary packages
pip install -r requirements.txt
# You are all set at this point.
Add . env/bin/activate; to your bash_profile alias, so that next time you can easily start env;
Mine is: alias lintcode="cd ~/LintCode;. env/bin/activate"
You should be able to do python manage.py runserver;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment