OS | APP | Version |
---|---|---|
Ubuntu 18.04.1 | boost | 1.66.0 |
关于ImportError: libboost_python.so.1.66.0: cannot open shared object file: No such file or directory错误的解决方法:
执行以下命令:
- 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
- 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