Boost.Numpy的安装

下载:git clone https://github.com/ndarray/Boost.NumPy.git 
cd Boost.Numpy 
mkdir build 
cd build 
cmake .. 
此时会遇到找不到boost相关库的错误 
vim ../CMakeLists.txt 
在find_package(Boost COMPONENTS python REQUIRED)之前加入 
set(BOOST_ROOT “/usr/src/boost_1_55_0”) 
set(Boost_LIBRARIES “/usr/local/boost-1.55.0/lib”) 
set(Boost_INCLUDE_DIRS “/usr/local/boost-1.55.0/include”) 
set(BOOST_LIBRARYDIR “/usr/local/boost-1.55.0/lib”) 
双引号内容根据自己的实际路径填写 
执行cmake .. 
成功后cd .. 
可以看到根目录下有一个Makefile生成,执行 
make 
make install 

转载留存 from https://blog.csdn.net/hao529good/article/details/46828027

你可能感兴趣的:(机器学习)