Created exe file not getting executed

Like to create a binary ecexuteble file of below script, Its getting compiled but giving me some error.

Content (simpleSentenceTrasformerUsage.py)

from sentence_transformers import SentenceTransformer
model = SentenceTransformer(‘all-mpnet-base-v2’)

#Our sentences we like to encode
sentences = [‘This framework generates embeddings for each input sentence’,
‘Sentences are passed as a list of string.’,
‘The quick brown fox jumps over the lazy dog.’]

#Sentences are encoded by calling model.encode()
embeddings = model.encode(sentences)

#Print the embeddings
for sentence, embedding in zip(sentences, embeddings):
print(“Sentence:”, sentence)
print(“Embedding:”, embedding)
print(“”)


compiling with
pyinstaller simpleSentenceTrasformerUsage.py --onefile

While running
$>> ./dist/simpleSentenceTrasformerUsage
Traceback (most recent call last):
File “transformers/utils/versions.py”, line 102, in require_version
File “importlib/metadata/init.py”, line 996, in version
File “importlib/metadata/init.py”, line 969, in distribution
File “importlib/metadata/init.py”, line 548, in from_name
importlib.metadata.PackageNotFoundError: No package metadata was found for tqdm

Can you please suggest how it could be achieved ?