Files
concrete/docs/user/basics/installing.md
Jeremy Bradley-Silverio Donato f387eaedba docs: English checking and improvement
2021-12-20 11:43:52 +01:00

1.8 KiB

Installing

Python package

To install Concrete from PyPi, run the following:

pip install concretefhe
Note that **concretefhe** has `pygraphviz` as an optional dependency to draw graphs.
`pygraphviz` requires `graphviz` packages being installed on your OS, see <a href="https://pygraphviz.github.io/documentation/stable/install.html">https://pygraphviz.github.io/documentation/stable/install.html</a>
`graphviz` packages are binary packages that won't automatically be installed by pip.
Do check <a href="https://pygraphviz.github.io/documentation/stable/install.html">https://pygraphviz.github.io/documentation/stable/install.html</a> for instructions on how to install `graphviz` for `pygraphviz`.

You can install the extra python dependencies for drawing with:

pip install concretefhe[full]
# you may need to force reinstallation
pip install --force-reinstall concretefhe[full]

Docker image

You can also get the concretefhe docker image by either pulling the latest docker image or a specific version:

docker pull zamafhe/concretefhe:latest
# or
docker pull zamafhe/concretefhe:v0.2.0

The image can be used with docker volumes, see the docker documentation here.

You can then use this image with the following command:

# Without local volume:
docker run --rm -it -p 8888:8888 zamafhe/concretefhe:v0.2.0

# With local volume to save notebooks on host:
docker run --rm -it -p 8888:8888 -v /host/path:/data zamafhe/concretefhe:v0.2.0

This will launch a Concrete enabled jupyter server in the docker, that you can access from your browser.

Alternatively, you can just open a shell in the docker with or without volumes:

docker run --rm -it zamafhe/concretefhe:v0.2.0 /bin/bash