Installation
This document explains the steps to install Concrete into your project.
Concrete is natively supported on Linux and macOS from Python 3.8 to 3.11 inclusive. If you have Docker in your platform, you can use the docker image to use Concrete.
Using PyPI
Install Concrete from PyPI using the following commands:
Not all versions are available on PyPI. If you need a version that is not on PyPI (including nightly releases), you can install it from our package index by adding --extra-index-url https://pypi.zama.ai/cpu/
. GPU wheels are also available under https://pypi.zama.ai/gpu/
(check https://pypi.zama.ai/
for all available platforms).
To enable all the optional features, install the full
version of Concrete:
Not all versions are available on PyPI. If you need a version that is not on PyPI (including nightly releases), you can install it from our package index by adding --index-url https://pypi.zama.ai/cpu.
In particular, wheels with GPU support are not on PyPI. You can install it from our package index by adding --index-url https://pypi.zama.ai/gpu, more information on GPU wheels here.
The full version requires pygraphviz, which depends on graphviz. Make sure to install all the dependencies on your operating system before installing concrete-python[full]
.
Installing pygraphviz
on macOS can be problematic (see more details here).
If you're using homebrew, you can try the following way:
before running:
Using Docker
You can also get the Concrete docker image. Replace v2.4.0
below by the version you want to install:
Docker is not supported on Apple Silicon.
Last updated