giotto-ai / giotto-tda

A high-performance topological machine learning toolbox in Python
https://giotto-ai.github.io/gtda-docs
Other
845 stars 173 forks source link

Cannot install in MacOS v12.5 with M1 pro chip #639

Closed riddhamanna closed 2 years ago

riddhamanna commented 2 years ago

Cannot install through pip (updated), as well as by cloning the git repository and trying

cd giotto-tda python -m pip install -e ".[dev]" :

Defaulting to user installation because normal site-packages is not writeable Obtaining file:///Users/riddha/git/giotto-tda Preparing metadata (setup.py) ... done Requirement already satisfied: numpy>=1.19.1 in /Users/riddha/Library/Python/3.8/lib/python/site-packages (from giotto-tda==0.5.1) (1.23.1) Requirement already satisfied: scipy>=1.5.0 in /Users/riddha/Library/Python/3.8/lib/python/site-packages (from giotto-tda==0.5.1) (1.9.0) Requirement already satisfied: joblib>=0.16.0 in /Users/riddha/Library/Python/3.8/lib/python/site-packages (from giotto-tda==0.5.1) (1.1.0) Requirement already satisfied: scikit-learn>=0.23.1 in /Users/riddha/Library/Python/3.8/lib/python/site-packages (from giotto-tda==0.5.1) (1.1.2) ERROR: Could not find a version that satisfies the requirement giotto-ph>=0.2.1 (from giotto-tda[dev]) (from versions: none) ERROR: No matching distribution found for giotto-ph>=0.2.1

Simply using pip from the terminal does not work and says it is an issue with the package and not pip (like many users reported.

ulupo commented 2 years ago

Hi @riddhamanna! In short, the problem here is that you would also have to install giotto-ph and pyflagser (which are dependencies of giotto-tda) from sources, because they too are missing PyPI wheels for Apple Silicon. See https://github.com/giotto-ai/giotto-tda/issues/617. We are working on releasing Apple Silicon wheels for these three libraries as soon as possible.

riddhamanna commented 2 years ago

Hello @ulupo, Thank you for informing. Will be waiting for the release. :)