1

I get the above error while installing syft package through Anaconda command. I followed the below link exactly as is, https://medium.com/secure-and-private-ai-writing-challenge/installing-pysyft-package-ffa1ff0ad83c

Following commands were used:

conda create -n pysyft python=3
conda activate pysyft
pip install syft

Some of the links suggested to update the Pytorch version. I have 1.5.0+cpu version already and updating didnt help. I also tried using pip install syft without creating a conda environment, that didnt solve the problem either. I went through the below stackoverflow link too which explains similar error, but it didnt help either: Issues installing PyTorch 1.4 - "No matching distribution found for torch===1.4.0"

Any advice? Thanks in advance

Eduardo Yáñez Parareda
  • 9,126
  • 4
  • 37
  • 50
Varun kadekar
  • 427
  • 6
  • 15
  • Could you try installing it with `pip install syft -f https://download.pytorch.org/whl/torch_stable.html`? Otherwise, could you install PyTorch *1.4.0* manually (not *1.5.0*, that's not supported by syft)? – Michael Jungo May 17 '20 at 11:55
  • 1
    thanks Micheal... the first command worked, just that I had to use "--user" after "install". I think your comment must be an answer for this question............ pip install --user syft -f https://download.pytorch.org/whl/torch_stable.html – Varun kadekar May 18 '20 at 07:16

2 Answers2

3

Not all PyTorch versions are available on Python's package registry PyPI. For instance, the CPU only version or any Windows version is only available on PyTorch's custom registry. Selecting one of these versions on PyTorch - Get Started Locally will give you an installation command including the custom registry. Installing PySyft also installs PyTorch and the specific version you're getting, requires adding the custom registry:

pip install syft -f https://download.pytorch.org/whl/torch_stable.html

You might need to add --user if you don't have write access to the system wide package location.

Michael Jungo
  • 31,583
  • 3
  • 91
  • 84
  • Are there any reason why this isn't in the official documentation if this is the expected way to install syft? – malavv Nov 05 '20 at 16:07
0

Create a new environment and use pip install syft==0.2.9.

It will also install a compatible pytorch for you.

Delton Myalil
  • 287
  • 1
  • 7