How to install/configure python 3 wrapping on Ubuntu 18.04 ?
I am on Ubuntu 18.04 where I would like to run otb using python3.
I installa otb 6.6.1 using .run file
Then, I have updated the otbenv.profile to point on python3 otb lib: '''bash PYTHONPATH=/usr/local/lib/OTB-6.6.0-Linux64/lib/python:$PYTHONPATH ''' As mentionned in the documentation, I have the following error '''bash ImportError: libpython3.5m.so.rh-python35-1.0: cannot open shared object file: No such file or directory '''
Because it's not python3.6 I used pyenv to install python 3.5.8 with the following command '''bash PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install -v 3.5.7 ''' Then to try to solve the Import error I try this command
ln -s /home/onfi/.pyenv/versions/3.5.7/lib/libpython3.5m.so /home/onfi/.pyenv/versions/3.5.7/lib/libpython3.5m.so.rh-python35-1.0
Unfortunately, I already have the folowing error :
File "/usr/local/lib/OTB-6.6.2-Linux64/lib/python3/otbApplication.py", line 17, in _otbApplication = swig_import_helper() File "/usr/local/lib/OTB-6.6.2-Linux64/lib/python3/otbApplication.py", line 16, in swig_import_helper return importlib.import_module('_otbApplication') File "/home/onfi/.pyenv/versions/3.5.7/lib/python3.5/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: libpython3.5m.so.rh-python35-1.0: cannot open shared object file: No such file or directory
My question is how to configure otb python wrapping on Ubuntu 18.04 ?
Thanks in advance.