Skip to content

Instantly share code, notes, and snippets.

@dynamicguy
Last active November 24, 2021 15:24
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 dynamicguy/542f50cae50aaa9de0c53def2152acc2 to your computer and use it in GitHub Desktop.
Save dynamicguy/542f50cae50aaa9de0c53def2152acc2 to your computer and use it in GitHub Desktop.
# Basic
sudo apt-get -y update
sudo apt-get -qq install -y build-essential
# OpenCV
sudo apt-get -qq install -y libopencv-dev
sudo apt-get -qq install -y libtesseract-dev
# General dependencies
sudo apt-get -qq install -y libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get -qq install -y --no-install-recommends libboost-all-dev
# Remaining dependencies, 14.04
sudo apt-get -qq install -y libgflags-dev libgoogle-glog-dev liblmdb-dev
# Python3 libs
sudo apt-get -qq install -y python3-setuptools python3-dev
sudo apt-get -qq install -y python3-pip
sudo -H pip3 install --upgrade numpy protobuf opencv-python
# OpenCL Generic
sudo apt-get -qq install -y opencl-headers ocl-icd-opencl-dev
sudo apt-get -qq install -y libviennacl-dev
# All in one line
sudo apt-get -qq install -y libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libgflags-dev libgoogle-glog-dev liblmdb-dev opencl-headers ocl-icd-opencl-dev libviennacl-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment