Closed rancheng closed 3 years ago
I found this problem is introduced from pybind11, there is a duplicated issue:
This command solved this issue:
cmake .. -DPYTHON_EXECUTABLE=$(which python)
Here is the compiled library for python 3.8:
g2o.cpython-38-x86_64-linux-gnu.zip pangolin.cpython-38-x86_64-linux-gnu.zip
decompress the zip files and copy the .so
files to the system library:
copying ./g2o.cpython-38-x86_64-linux-gnu.so -> /venv/lib/python3.8/site-packages
and verify the library by run:
import g2o
I always get the pybind find the wrong version of python, the output is:
What I want is a virtual environment installed in
/venv/bin/python3.8