lmcinnes / umap

Uniform Manifold Approximation and Projection
BSD 3-Clause "New" or "Revised" License
7.46k stars 808 forks source link

illegal hardware instruction python #1110

Open alexlenail opened 7 months ago

alexlenail commented 7 months ago

I re-installed

in an existing conda environment (python 3.9.15), where I have recent versions of packages like

but when I do $ python and > import umap I get illegal hardware instruction python.

When I create a brand new environment with umap-learn, I don't get the issue, but I'd like to work in the current environment if at all possible. I've tried re-installing the package, and numba, but nothing has worked yet.

EvieQ01 commented 7 months ago

Got exactly the same issue with umap-learn 0.5.1 ~ 0.5.5. I've tried re-installed the package, and also tried conda update --all, but still get illegal hardware instruction Python. when importing umap. Using Apple M1 and Mac OS 14.2.1

EvieQ01 commented 7 months ago

Could be a problem with the M1. I solved the problem by getting a new miniconda env and followed: https://github.com/tensorflow/tensorflow/issues/60569 For your reference, I applied: conda install -c apple tensorflow-deps and then conda install -c conda-forge umap-learn now it worked with umap-learn 0.5.6