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?

3 Answers

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

1

The other answers weren't working for me even though I saw them working for others on other message boards. This did work for me though.

  1. pip install torch==1.2.0 torchvision==0.4.0 -f
  2. pip install -U sentence-transformers

Maybe try pip3? That might be why it says that it can't find a version.

5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.