TutteInstitute / evoc

Embedding Vector Oriented Clustering
BSD 2-Clause "Simplified" License
97 stars 3 forks source link

package not on pypi #2

Open dhruv-anand-aintech opened 4 months ago

dhruv-anand-aintech commented 4 months ago

I can't find the evoc package on pypi (pip install evoc fails). I guess I'll install from source to try it out for now.

dhruv-anand-aintech commented 4 months ago

I get this error when I try to install from source:

git clone https://github.com/TutteInstitute/evoc
cd evoc
pip install .
Cloning into 'evoc'...
remote: Enumerating objects: 83, done.
remote: Counting objects: 100% (83/83), done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 83 (delta 36), reused 60 (delta 19), pack-reused 0
Receiving objects: 100% (83/83), 84.81 KiB | 4.71 MiB/s, done.
Resolving deltas: 100% (36/36), done.
Processing /Users/dhruvanand/Code/evoc
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.21 in /Users/dhruvanand/miniforge3/lib/python3.10/site-packages (from evoc==0.1.0) (1.26.4)
Requirement already satisfied: scikit-learn>=1.1 in /Users/dhruvanand/miniforge3/lib/python3.10/site-packages (from evoc==0.1.0) (1.3.2)
Collecting numba>=0.59 (from evoc==0.1.0)
  Obtaining dependency information for numba>=0.59 from https://files.pythonhosted.org/packages/15/01/19c67d25ff36713ad5b90ef4a1a54fa4a87ccb377a8b2fccce2f6b4fd582/numba-0.59.1-cp310-cp310-macosx_11_0_arm64.whl.metadata
  Downloading numba-0.59.1-cp310-cp310-macosx_11_0_arm64.whl.metadata (2.7 kB)
Requirement already satisfied: tqdm in /Users/dhruvanand/miniforge3/lib/python3.10/site-packages (from evoc==0.1.0) (4.66.4)
INFO: pip is looking at multiple versions of evoc to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following versions that require a different python version: 0.52.0 Requires-Python >=3.6,<3.9; 0.52.0rc3 Requires-Python >=3.6,<3.9; 0.53.0 Requires-Python >=3.6,<3.10; 0.53.0rc1.post1 Requires-Python >=3.6,<3.10; 0.53.0rc2 Requires-Python >=3.6,<3.10; 0.53.0rc3 Requires-Python >=3.6,<3.10; 0.53.1 Requires-Python >=3.6,<3.10; 0.54.0 Requires-Python >=3.7,<3.10; 0.54.0rc2 Requires-Python >=3.7,<3.10; 0.54.0rc3 Requires-Python >=3.7,<3.10; 0.54.1 Requires-Python >=3.7,<3.10
ERROR: Could not find a version that satisfies the requirement tbb (from evoc) (from versions: none)
ERROR: No matching distribution found for tbb

Is tbb workable with Apple Silicon?

wilsonjr commented 4 months ago

I get this error when I try to install from source:

git clone https://github.com/TutteInstitute/evoc
cd evoc
pip install .
Cloning into 'evoc'...
remote: Enumerating objects: 83, done.
remote: Counting objects: 100% (83/83), done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 83 (delta 36), reused 60 (delta 19), pack-reused 0
Receiving objects: 100% (83/83), 84.81 KiB | 4.71 MiB/s, done.
Resolving deltas: 100% (36/36), done.
Processing /Users/dhruvanand/Code/evoc
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.21 in /Users/dhruvanand/miniforge3/lib/python3.10/site-packages (from evoc==0.1.0) (1.26.4)
Requirement already satisfied: scikit-learn>=1.1 in /Users/dhruvanand/miniforge3/lib/python3.10/site-packages (from evoc==0.1.0) (1.3.2)
Collecting numba>=0.59 (from evoc==0.1.0)
  Obtaining dependency information for numba>=0.59 from https://files.pythonhosted.org/packages/15/01/19c67d25ff36713ad5b90ef4a1a54fa4a87ccb377a8b2fccce2f6b4fd582/numba-0.59.1-cp310-cp310-macosx_11_0_arm64.whl.metadata
  Downloading numba-0.59.1-cp310-cp310-macosx_11_0_arm64.whl.metadata (2.7 kB)
Requirement already satisfied: tqdm in /Users/dhruvanand/miniforge3/lib/python3.10/site-packages (from evoc==0.1.0) (4.66.4)
INFO: pip is looking at multiple versions of evoc to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following versions that require a different python version: 0.52.0 Requires-Python >=3.6,<3.9; 0.52.0rc3 Requires-Python >=3.6,<3.9; 0.53.0 Requires-Python >=3.6,<3.10; 0.53.0rc1.post1 Requires-Python >=3.6,<3.10; 0.53.0rc2 Requires-Python >=3.6,<3.10; 0.53.0rc3 Requires-Python >=3.6,<3.10; 0.53.1 Requires-Python >=3.6,<3.10; 0.54.0 Requires-Python >=3.7,<3.10; 0.54.0rc2 Requires-Python >=3.7,<3.10; 0.54.0rc3 Requires-Python >=3.7,<3.10; 0.54.1 Requires-Python >=3.7,<3.10
ERROR: Could not find a version that satisfies the requirement tbb (from evoc) (from versions: none)
ERROR: No matching distribution found for tbb

Is tbb workable with Apple Silicon?

Hi @dhruv-anand-aintech . I had the same problem. There is no support of tbb for Apple processors.

lmcinnes commented 4 months ago

conda certainly packages up tbb for mac. That might be the only way. I'll see if I can figure out a way to work around this longer term, but tbb for parallelism makes a huge performance difference, so it will be hard to work around.