运行报错libboost_python.so文件找不到解决方法 ImportError: libboost_python.so.1.66.0: No such file or directory

OS APP Version
Ubuntu 18.04.1 boost 1.66.0

boost
关于ImportError: libboost_python.so.1.66.0: cannot open shared object file: No such file or directory错误的解决方法:

执行以下命令:

  1. python3版本
wget https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz
&& tar zxf boost_1_66_0.tar.gz \
&& cd boost_1_66_0 \
&& ./bootstrap.sh --with-python=/usr/bin/python3 \
&& sudo ./b2 install --with-python include="/usr/include/python3.6m"  --with-atomic  --with-log  --with-test --with-thread --with-date_time  --with-chrono
  1. python2版本
wget https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.gz
&& tar zxf boost_1_66_0.tar.gz \
&& cd boost_1_66_0 \
&& ./bootstrap.sh --with-python=/usr/bin/python2 \
&& sudo ./b2 install --with-python include="/usr/include/python2.7"  --with-atomic  --with-log  --with-test --with-thread --with-date_time  --with-chrono

猜你喜欢

转载自blog.csdn.net/otter1010/article/details/100524645
今日推荐