Solution for Python Package Cannot Find libboost_python36.so.1.67.0
is Given Below:
System : Ubuntu 18.04. Python 3.8 is my global install, but I have multiple local installs of various versions of Python from 2.7, 3.4, 3.6, 3.7, 3.8 and 3.9.
I have a project I am using with a boost dependency. When I try to import it it says
ImportError: libboost_python36.so.1.67.0: cannot open shared object file: No such file or directory.
To confirm it doesn’t exist I did
and found no results. However, doing
did bring up a file called
Presumably because I needed it for a different project on a different python installation.
To perform the boost install I downloaded the correct version from their release ( boost_1_67_0.tar.gz ) and extracted it. I then did the following commands
cd boost_1_67_0 sudo ./bootstrap.sh --with-python=/home/myusername/.local/bin/python3.6m --with-python-version=python3.6 sudo ./b2 install sudo ./bjam install
However upon completing I get the same error and I still do not find a file called libboost_python36.so.1.67.0 when I run a locate.
What can I be doing wrong that I am not generating such a shared object file?