I'm trying to install sentence-transformers python package as a workspace package for Azure Synapse Analytics.(To be used on Apache Spark Pool)
Tried installing it through magic command %pip install sentence-transformers
through a notebook and it works.
Following the steps for uploading the sentence-transformers-2.2.2.tar.gz
to Workspace and configuration throws the following error mentioned in the screenshot.
I tested with couple of other python packages and they work fine.
Any workarounds?
I got same error when I tried to upload the sentence-transformers-2.2.2.tar.gz
from workspace packages to spark pool.
I am able to install the above package using the below workaround.
First I have created a requirements.txt
file with package and version like below.
sentence-transformers==2.2.2
I got this error when trying to import before installing the package.
Upload the requirements.txt
file to spark pool packages like below.
Wait for the Job to get succeed.
Now, you can see I am able to import it.