pyenv

Install OpenCV 3.1.0 with Python 3.5+ in Ubuntu 14.04

Getting OpenCV 3 up and running with Python 3.5+ on Ubuntu 14.04 is a pain in the ass. For the most part the instructions here are the same as in this guide, with a few changes needed specifically for Python 3.5+. I’m going to assume that you already have pyenv and pyenv-virtualenv installed for the purpose of this guide. Install prerequisites sudo apt-get update sudo apt-get install -y build-essential cmake git pkg-config sudo apt-get install -y libjpeg8-dev libtiff4-dev libjasper-dev sudo apt-get install -y libpng12-dev libavcodec-dev sudo apt-get install -y libavformat-dev libswscale-dev libv4l-dev sudo apt-get install -y libgtk2.

Setup Ubuntu 14.04 with Cuda and Lasagne

Installation of prerequisites # Install common stuff sudo apt-get install build-essential sudo apt-get install zsh git # Install SciPy dependencies sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran # Install pyenv curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash # Install python 3.5.0 env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.5.0 # Install cuda wget http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda-repo-ubuntu1404-7-5-local_7.5-18_amd64.deb sudo dpkg -i cuda-repo-ubuntu1404-7-5-local_7.5-18_amd64.deb sudo apt-get update sudo apt-get install cuda popd # Create theanorc echo "[global]" > ~/.theanorc echo "floatX = float32" echo "device = gpu" Create pyenv and install lasagne Choose a name you see fit.