Skip to content

Instantly share code, notes, and snippets.

@talegari
Last active May 4, 2018 15:02
Show Gist options
  • Save talegari/f835763b26c94a5790d5f2b298a64c33 to your computer and use it in GitHub Desktop.
Save talegari/f835763b26c94a5790d5f2b298a64c33 to your computer and use it in GitHub Desktop.
Installing `dlib` with python/R bindings on Ubuntu 16.04

Installing dlib to access via python and R

Author: Srikanth KS

You might need minor modifications

For ubuntu 16.04:

sudo apt-get install build-essential cmake
sudo apt-get install libgtk-3-dev
sudo apt-get install libboost-all-dev

Assuming pip is already installed:

sudo apt-get install libboost-dev

For python bindings:

sudo apt-get install libboost-python-dev
sudo pip install numpy
sudo pip install scipy
sudo pip install scikit-image
  
sudo pip install dlib

For R bindings:

In R:

  • Stable version
install.packages("dlib")
  • Dev version
devtools::install_github("bnosac/dlib")  
@radhika1707
Copy link

I followed the above mentioned tutorial. Still getting a "No module named dlib" error. Please help.

@minhaj3
Copy link

minhaj3 commented Apr 3, 2018

Try this guide of site pyimagesearch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment