Installing pysyft package

Shuvam Lal
Secure and Private AI Writing Challenge
2 min readJul 30, 2019

Hey everyone! This is my first article where I’ll be writing a brief tutorial about the pysyft package from OpenMined Community.
If you’re stuck while installing this package then this is the article for you.

First, pat yourself!

PySyft is a Python library for secure, private Deep Learning. PySyft decouples private data from model training, using Federated Learning, Differential Privacy, and Multi-Party Computation (MPC) within PyTorch.

This package can be installed into three packages i.e., Windows, Linux, and Mac. In this article I’ll be mostly focusing on Windows, so all Windows users just stick to this article.
If you’re on Windows and wants to install syft package locally, here are some easy steps you’ll need to follow.

Use Anaconda cmd for the following installation.
Some Preinstall requisites:

conda create -n pysyft python=3
conda activate pysyft # some older version of conda require “source activate pysyft” instead.
conda install jupyter notebook

After successfully loading the packages, run the final command

pip install syft

If your command runs successfully, then Hurray! Your syft library is successfully loaded.
You can verify this using this code python -c “import syft; print(syft.__version__). It will show you the current version of your code.

Now, if you’re getting stuck by some error, that could be in various ways and most of them I’ll cover in this article.

Chance are you could be getting an error like Couldn’t find a version that satisfies the requirement torch≥1.0.1

Sample image that you can relate with.

For this error just reinstall your torch package from here.

There may be other chances of getting an error like “zstd” error or Visual C++ build tools not found.

Sample image, which you can relate

For getting rid of this error, just install the software from here.
After successfully installing this software, run pip install syft on your cmd.

You will probably be able to install your pysyft library on your local computer.

Thanks for reading this article. Hope it helps your issues too. Have a great time on Securing the data.

--

--