Created
September 5, 2014 07:12
-
-
Save kenchangh/9e0b586c0e961621bb80 to your computer and use it in GitHub Desktop.
Setting up Python development environment in Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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