Files
concrete/docs/get-started/installing.md
youben11 ebbac92205 docs(frontend): update installation instructions
make a note about the new Zama PyPI
2024-05-17 09:20:32 +01:00

1.7 KiB

Installation

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

You can install Concrete from PyPI:

pip install -U pip wheel setuptools
pip install concrete-python

{% hint style="info" %} 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. {% endhint %}

There are some optional features which can be enabled by installing the full version:

pip install -U pip wheel setuptools
pip install concrete-python[full]

{% hint style="info" %} Full version depends on pygraphviz, which needs graphviz to be installed in the operating system so please install the operating system dependencies before installing concrete-python[full]. {% endhint %}

{% hint style="info" %} Installing pygraphviz on macOS can be problematic (see https://github.com/pygraphviz/pygraphviz/issues/11).

If you're using homebrew, you may try the following:

brew install graphviz
CFLAGS=-I$(brew --prefix graphviz)/include LDFLAGS=-L$(brew --prefix graphviz)/lib pip --no-cache-dir install pygraphviz

before running:

pip install concrete-python[full]

{% endhint %}

Using Docker

You can also get the Concrete docker image (replace "v2.4.0" below by the correct version you want):

docker pull zamafhe/concrete-python:v2.4.0
docker run --rm -it zamafhe/concrete-python:latest /bin/bash

Docker is not supported on Apple Silicon.