title: CMake Error "NumPy import failure" when compiling Boost.Numpy
body: <p>Here is what I installed as described <a href="https://github.com/mitmul/ssai-cnn" rel="nofollow">here</a>:</p>
  
  <pre><code>1. Python 3.5 (Anaconda3 2.4.3)
      Chainer 1.5.0.2
      Cython 0.23.4
      NumPy 1.10.1
      tqdm
  2. OpenCV 3.0.0
  3. lmdb 0.87
  4. Boost 1.59.0
  </code></pre>
  
  <p>Next I want to compile and install Boost.NumPy. In the beginning, NumPy module could not be found. After some search, I found NumPy-related files in <code>~/anaconda3/lib/python3.5/site-packages/numpy/core/include/numpy</code> instead of something like <code>/usr/lib</code>, <code>/usr/local/lib</code>, etc. Therefore, in <code>/Boost.NumPy/CMakeList.txt</code>, I added this line:</p>
  
  <pre><code>set(NUMPY_INCLUDE_DIRS, /home/graphics/anaconda3/lib/python3.5/site-packages)
  </code></pre>
  
  <p>But NumPy still could not be found. An error occurred as I run <code>cmake -DPYTHON_LIBRARY=$HOME/anaconda3/lib/libpython3.5m.so ../</code> to generate the makefile for Boost.NumPy. Here is the error: </p>
  
  <pre><code>graphics@gubuntu:~/usr/Boost.NumPy/build$ sudo cmake -DPYTHON_LIBRARY=$HOME/anaconda3/lib/libpython3.5m.so ../
  -- The C compiler identification is GNU 4.9.2
  -- The CXX compiler identification is GNU 4.9.2
  -- Check for working C compiler: /usr/bin/cc
  -- Check for working C compiler: /usr/bin/cc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Found PythonInterp: /usr/bin/python3.5 (found suitable version "3.5.1", minimum required is "3.5") 
  -- Found PythonInterp: /usr/bin/python3.5 (found version "3.5.1") 
  -- Found PythonLibs: /home/graphics/anaconda3/lib/libpython3.5m.so
  CMake Error at libs/numpy/cmake/FindNumPy.cmake:61 (message):
    NumPy import failure:
  
    Traceback (most recent call last):
  
      File "&lt;string&gt;", line 1, in &lt;module&gt;
  
    ImportError: No module named 'numpy'
  
  Call Stack (most recent call first):
    CMakeLists.txt:30 (find_package)
  
  
  -- Configuring incomplete, errors occurred!
  </code></pre>
  
  <p>I have tried to replace <code>NUMPY_INCLUDE_DIRS</code> with some other directories, but nothing works. What should I write to the <code>CMakelists.txt</code> to tell cmake where to find NumPy module and import it?</p>
  
  <p>Thanks in advance!</p>
  
  <hr>
  
  <p>Others files which might be needed to find out what goes wrong:</p>
  
  <ol>
  <li><a href="http://example.haichaoyu.com/example/CMakeLists.txt" rel="nofollow">CMakeLists.txt</a> of Boost.NumPy.</li>
  </ol>