Skip to content

Instantly share code, notes, and snippets.

@shkr
Last active August 25, 2016 05:58
Show Gist options
  • Select an option

  • Save shkr/4ed6fe26213035fa4cb2df7916ee999f to your computer and use it in GitHub Desktop.

Select an option

Save shkr/4ed6fe26213035fa4cb2df7916ee999f to your computer and use it in GitHub Desktop.
#!/bin/bash
# stop on error
set -e
############################################
# Dependencies
sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
# Install Python from Source
mkdir ~/src/
mkdir ~/.python
# set the appropriate library path
echo 'export PYTHONPATH=$HOME/.python
export PATH="$PYTHONPATH/bin/":$PATH
' >> ~/.bashrc
# Install Python
cd ~/src
# Pick and choose the python version from
# https://www.python.org/ftp/python/
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
tar -xf Python-3.5.2.tgz
cd Python-3.5.2
configure --prefix=$HOME/.python/
make && make install
vim
# Virtual Environment tar ball available here
# https://pypi.python.org/pypi/virtualenv
wget https://pypi.python.org/packages/virtualenv-15.0.3.tar.gz
tar -xf virtualenv-15.0.3.tar.gz
cd virtualenv-15.0.3
python setup.py install
# Install Pip
cd ~/src
wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
# Install Virtual Env Wrapper
pip install virtualenvwrapper
# Set environment variables for virtualenvwrapper
# Install CUDA
# Set environment variables for CUDA
# Install tensorflow
# Install numpy, scipy
# Test tensorflow and GPU with convolutional.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment