title: install dlib with python 3.5 on ubuntu 16 -- how to link proper libboost .so file
body: <p>I'm trying to install dlib version 19.0 on python 3.5 on a 64-bit ubuntu machine.  So far I've done:</p>
  
  <pre><code>sudo apt-get install libboost-all-dev
  </code></pre>
  
  <p>I downloaded <a href="http://dlib.net/" rel="nofollow">dlib version 19.0</a>, then</p>
  
  <pre><code>tar xvjf dlib-19.0.tar.bz2
  cd dlib-19.0
  python setup.py install
  </code></pre>
  
  <p>Then I went into python, and tried importing dlib</p>
  
  <pre><code>import dlib
  </code></pre>
  
  <p>It gave me this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/home/nate/anaconda3/lib/python3.5/site-packages/dlib-19.0.0-py3.5-linux-x86_64.egg/dlib/__init__.py", line 1, in &lt;module&gt;
      from .dlib import *
  ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0: undefined symbol: PyClass_Type
  </code></pre>
  
  <p>I know I need to link the dlib to libboost_python-py35.so.1.58.0 (it's in the same /usr/lib/x86_64-linux-gnu/ directory), I just don't know how.</p>