When I run pip install concrete-ml , I get this error:
ERROR: Could not find a version that satisfies the requirement concrete-compiler<0.5.0,>=0.4.0 (from concrete-numpy[full]) (from versions: none)
ERROR: No matching distribution found for concrete-compiler<0.5.0,>=0.4.0
I have also tried pip installing concrete-compiler, and concrete-numpy separately. Both also error out.
Don’t know for sure, so please correct me if I’m wrong, but since last update of concrete-numpy, I think some concrete-ml examples will not work correctly if you use concrete-numpy 0.7.0, so I recommend using version 0.5.0.
@benoit you are right! Sorry. Could be something related to incompatibilities with libraries from last version of concrete-numpy and concrete-ml requirements which uses differente libraries versions?
I would more think about pip setuptools wheel which needs to be updated, or some OS which would not be supported, but we need to wait more info from @Ross_Murphy first
I think your issue is related to your host architecture (I also have a M1). For the moment one of the main dependency of concrete-ML (concrete-compiler) use a compiled library that is not yet Apple Silicon compatible (see concrete-compiler · PyPI to see an example of the supported architectures: x86 Linux & x86 macOS for python 3.7 to 3.10 for this particular version).
To solve your problem, you could go with the docker image (Docker Hub)
In few lines, if it could help:
docker pull --platform linux/amd64 zamafhe/concrete-ml:v0.2.1
# map your current directory into container /data path
docker run --platform linux/amd64 --rm -v "$PWD":/data --entrypoint /bin/bash -it zamafhe/concrete-ml:v0.2.1
then it opens a shell inside the container and it works:
root@66bb715a2cd3:/# python3
Python 3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import concrete.ml
>>>