Skip to content

Instantly share code, notes, and snippets.

@shiraco
Last active August 29, 2015 14:18
Show Gist options
  • Save shiraco/e37a1978abed238dba50 to your computer and use it in GitHub Desktop.
Save shiraco/e37a1978abed238dba50 to your computer and use it in GitHub Desktop.
#!/bin/bash
# update the local repo listing
sudo apt-get -y update
sudo apt-get -y upgrade
# install language-pack-ja
sudo apt-get -y install language-pack-ja
# install git
sudo apt-get -y install git
# install pyenv
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
source .bash_profile
# python install
sudo apt-get -y install gcc \
build-essential \
zlib1g-dev \
libbz2-dev \
libssl-dev \
libreadline-dev \
libsqlite3-dev
pyenv install -l
pyenv install 3.4.3
pyenv global 3.4.3
pip install virtualenv
pyenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment