【发布时间】:2016-08-26 09:12:08
【问题描述】:
我正在尝试在 Ubuntu 16.04 中安装 boost.numpy。我尝试了这些命令来安装 boost.numpy
**git clone https://github.com/ndarray/Boost.NumPy.git
cd Boost.NumPy && mkdir build && cd build
cmake -DPYTHON_LIBRARY=$HOME/anaconda3/lib/libpython3.5m.so ../**
在做 cmake 之后我遇到了这个错误:
检测到的架构“x86_64”
-- Using Python3
CMake Error at /usr/share/cmake-3.5/Modules/FindBoost.cmake:1677 (message):
Unable to find the requested Boost libraries.
Boost version: 1.59.0
Boost include path: /home/sumit/Documents/Software/boost_1_59_0
Could not find the following static Boost libraries:
boost_python3
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
CMakeLists.txt:48 (find_package)
Boost Paths:
Include : /home/sumit/Documents/Software/boost_1_59_0
**Libraries**: /home/sumit/Documents/Software/boost_1_59_0/libs
Configuring incomplete, errors occurred!
另请参阅“/home/sumit/Documents/Software/Boost.NumPy/build/CMakeFiles/CMakeOutput.log”。
以前无法找到 boost 库 sp 我手动将 CmakeList.txt 库路径更改为 boost_1_59_0 库路径的路径。当我执行 cmake 时,此路径出现在库选项中。但仍然缺少 boost_python3。我是新手,我尝试过的只是谷歌的结果。 请帮忙。
【问题讨论】:
-
您是使用开发版还是官方发布版?
标签: python git ubuntu numpy boost