I have provisioned a vanila centos and then executed the following commands:
conda create --name an-env python=3.9
conda activate an-env
conda install -c conda-forge sentence-transformers
I am trying to import a hugging face library:
from sentence_transformers import SentenceTransformer
import os
In a centos 8 machine I get the following error:
libssl.so.3: cannot open shared object file: No such file or directory
I installed it using the following command:
conda install -c conda-forge sentence-transformers
Already tried the following:
yum install openssl.x86_64
yum install pyOpenSSL.x86_64
I also tried:
sudo ldconfig
and still get the following error:
libssl.so.3: cannot open shared object file: No such file or directory
Can anyone please help me how to resolve this error?
I got the idea from @CharlesDuffy as he mentioned You need to have the same version of OpenSSL installed that your software was compiled against
I uninstalled the library using conda uninstall sentence-transformers
. And then installed with pip install -U sentence-transformers
.
This solves the issue.