安装Boost.NumPy时报错:

CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1794 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.61.0

  Boost include path: /usr/include

  Could not find the following Boost libraries:

          boost_python3

  Some (but not all) of the required Boost libraries were found.  You may
  need to install these additional Boost libraries.  Alternatively, set
  BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
  to the location of Boost.
Call Stack (most recent call first):
  ycm/CMakeLists.txt:202 (find_package)


Using external libclang: /usr/lib64/libclang.so.3.8
-- Found PythonInterp: /usr/bin/python3.5 (found version "3.5.2") 
-- Configuring incomplete, errors occurred!
See also "/home/bstaletic/ycmd/CMakeFiles/CMakeOutput.log".
See also "/home/bstaletic/ycmd/CMakeFiles/CMakeError.log".
其实是boost安装的时候Python的环境变量不是python3.5
把环境变量改成python3.5后,再安装Boost,然后安装boost_numpy就不报这个错了。
更改环境变量也很简单。
ln -s Python3.5 /usr/bin/python

相关文章:

  • 2021-09-24
  • 2021-08-23
  • 2021-11-02
  • 2022-12-23
  • 2021-11-12
  • 2021-09-15
  • 2021-07-14
  • 2022-12-23
猜你喜欢
  • 2021-04-30
  • 2021-12-11
  • 2021-06-02
  • 2021-05-15
  • 2022-12-23
  • 2021-06-20
  • 2022-01-07
相关资源
相似解决方案