segmentation fault python when importing otbApplication
Hello, I am trying to install otb module for Python on MacOs Catalina 10.15.7. First, I created a conda environment with python3.7 and I installed numpy.
I run the following commands in the terminal :
cd /Users/laura/opt/ #go to directory where OTB file has been set
chmod +x OTB-8.0.0-Darwin64.run ./OTB-8.0.0-Darwin64.run
source /Users/laura/opt/OTB-8.0.0-Darwin64/otbenv.profile
echo $PYTHONPATH
As I get blank response to this last command, I run :
export PYTHONPATH="/Users/laura/opt/OTB-8.0.0-Darwin64/lib/python
Then:
ln -s /Users/laura/opt/anaconda3/envs/otb/lib/libpython3.5m.dylib /Users/laura/opt/OTB-8.0.0-Darwin64/libpython3.5m.so.rh-python35-1.0
OTB_APPLICATION_PATH="/Users/laura/opt/OTB-8.0.0-Darwin64/lib/otb/applications"
When I run python on terminal and import otbApplication, I get the following error : zsh: segmentation fault python
I don't know what to do, I never had to install module that way so I'm lost.
Thank you in advance for your help !