Search code examples
transformer-modelsentencebert-language-model

Unable to pip install -U sentence-transformers


I am unable to do: pip install -U sentence-transformers. I get this message on Anaconda Prompt: ERROR: Could not find a version that satisfies the requirement torch>=1.0.1 (from sentence-transformers) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2) ERROR: No matching distribution found for torch>=1.0.1 (from sentence-transformers) Can someone help?


Solution

  • I tried to Conda Install pytorch and then installed Sentence Transformer by doing these steps:

    1. conda install pytorch torchvision cudatoolkit=10.0 -c pytorch

    2. pip install -U sentence-transformers

    This worked. Thanks