当前位置:   article > 正文

TMP TMp_could not find pythoninterp (missing: python_execu

could not find pythoninterp (missing: python_executable) (required is at lea

-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.7")
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "2.7")
-- To find NumPy Python interpretator is required to be found.
-- Could NOT find NumPy (missing: NUMPY_INCLUDE_DIR NUMPY_VERSION) (Required is at least version "1.7.1")

/usr/local/bin/cmake ../  -D BUILD_python=on   -D PYTHON_EXECUTABLE=/usr/bin/python3.6  -D PYTHON_LIBRARIES=/usr/lib/x86_64-linux-gnu/libboost_python-py36.so   -D PYTHON_INCLUDE_DIRS=/usr/include/python3.6 -D NUMPY_INCLUDE_DIR=/usr/lib/python3/dist-packages/numpy/core/include/
 
cmake ../  -DBUILD_python=on   -DPYTHON_EXECUTABLE=/usr/bin/python3.6  -DPYTHON_LIBRARIES=/usr/lib/x86_64-linux-gnu/libboost_python-py36.so   -DPYTHON_INCLUDE_DIRS=/usr/include/python3.6 -DNUMPY_INCLUDE_DIR=/usr/lib/python3/dist-packages/numpy/core/include/  -DCMAKE_CXX_COMPILER=/usr/bin/c++

/usr/local/bin/cmake  ../  -DBUILD_python=on   -DPYTHON_EXECUTABLE=/usr/bin/python3.6  -DPYTHON_LIBRARIES=/usr/lib/x86_64-linux-gnu/libboost_python-py36.so   -DPYTHON_INCLUDE_DIRS=/usr/include/python3.6 -DNUMPY_INCLUDE_DIR=/usr/lib/python3/dist-packages/numpy/core/include/  -DCMAKE_CXX_COMPILER=/usr/bin/c++

 /usr/local/lib/libboost_python36.so


 sudo ln -s libboost_numpy.so -> libboost_numpy3-py36.so
 
 /usr/lib/x86_64-linux-gnu/libboost_python.so
/usr/lib/x86_64-linux-gnu/libboost_python.a
/usr/lib/x86_64-linux-gnu/libboost_python3.a
/usr/lib/x86_64-linux-gnu/libboost_python3-py36.so
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.65.1
/usr/lib/x86_64-linux-gnu/libboost_python3.so
/usr/lib/x86_64-linux-gnu/libboost_python3-py36.a
/usr/lib/x86_64-linux-gnu/libboost_python3-py36.so.1.65.1
/usr/lib/x86_64-linux-gnu/libboost_python-py27.a
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so
/usr/lib/x86_64-linux-gnu/libboost_python-py36.a
/usr/lib/x86_64-linux-gnu/libboost_python-py36.so


sudo rm -rf  ./libpython3.6m.so
sudo ln -s libboost_python-py36.so libboost_python.so
sudo ln -s libpython3.6m.so.1.0 libpython3.6m.so

  1. cd /usr/lib/x86_64-linux-gnu
  2. rm libboost_mpi_python.so
  3. rm libboost_python.so
  4. rm libboost_numpy.so
  5. sudo ln -s libboost_mpi_python.so -> libboost_mpi_python3-py36.so.1.65.1
  6. sudo ln -s libboost_python.so -> libboost_python3-py36.so.1.65.1
  7. sudo ln -s libboost_numpy.so -> libboost_numpy3-py36.so
  8. /usr/local/bin/cmake ../ -DBUILD_python=on -DBUILD_python_layer=on -DPYTHON_EXECUTABLE=/usr/bin/python3.6 -DPYTHON_LIBRARIES=/usr/lib/x86_64-linux-gnu/libboost_python-py36.so -DPYTHON_INCLUDE_DIRS=/usr/include/python3.6 -DNUMPY_INCLUDE_DIR=/usr/lib/python3/dist-packages/numpy/core/include/ -DCMAKE_CXX_COMPILER=/usr/bin/g++

cd /usr/lib/x86_64-linux-gnu

rm libboost_mpi_python.so

rm libboost_python.so

rm libboost_numpy.so

sudo ln -s libboost_mpi_python.so -> libboost_mpi_python3-py36.so.1.65.1

sudo ln -s libboost_python.so -> libboost_python3-py36.so.1.65.1

sudo ln -s libboost_numpy.so -> libboost_numpy3-py36.so

/usr/local/bin/cmake  ../  -DBUILD_python=on -DBUILD_python_layer=on  -DPYTHON_EXECUTABLE=/usr/bin/python3.6  -DPYTHON_LIBRARIES=/usr/lib/x86_64-linux-gnu/libboost_python-py36.so   -DPYTHON_INCLUDE_DIRS=/usr/include/python3.6 -DNUMPY_INCLUDE_DIR=/usr/lib/python3/dist-packages/numpy/core/include/  -DCMAKE_CXX_COMPILER=/usr/bin/g++

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/119789
推荐阅读
相关标签
  

闽ICP备14008679号