Skip to content

Instantly share code, notes, and snippets.

@kenchangh
Created September 5, 2014 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenchangh/9e0b586c0e961621bb80 to your computer and use it in GitHub Desktop.
Save kenchangh/9e0b586c0e961621bb80 to your computer and use it in GitHub Desktop.
Setting up Python development environment in Ubuntu
sudo apt-get update
sudo apt-get install build-essential python-dev
sudo apt-get install make wget
# Redis
wget http://download.redis.io/releases/redis-2.8.14.tar.gz
tar xzf redis-2.8.14.tar.gz
cd redis-2.8.14
make
sudo make install
# MySQL
sudo apt-get install mysql-server mysql-client
sudo mysql --password="55popo" --execute="CREATE DATABASE dev"
sudo apt-get install python-mysqldb
# Setup PIP and Python modules
cd ..
wget https://bootstrap.pypa.io/get-pip.py
sudo pip install Flask Flask-SQLAlchemy Flask-WTF
sudo pip install redis hiredis
sudo pip install dateutils
# Nginx & uWSGI
sudo apt-get install nginx
sudo pip install uwsgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment