gatagat / lap

Linear Assignment Problem solver (LAPJV/LAPMOD).
BSD 2-Clause "Simplified" License
211 stars 66 forks source link

problem installing LAP library in vscode using pyhton 3.12.4 #59

Open AjayKadam1 opened 1 month ago

AjayKadam1 commented 1 month ago

(myenv) C:\Python_ML\Project>pip install lap Collecting lap Using cached lap-0.4.0.tar.gz (1.5 MB) Preparing metadata (setup.py) ... done Building wheels for collected packages: lap Building wheel for lap (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [11 lines of output] C:\Users\AjayK\AppData\Local\Temp\pip-install-76bfr7uy\lap_db498f4eb29b4e47a19c425b5b8f640f\setup.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import parse_version Partial import of lap during the build process. Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\AjayK\AppData\Local\Temp\pip-install-76bfr7uy\lap_db498f4eb29b4e47a19c425b5b8f640f\setup.py", line 236, in setup_package() File "C:\Users\AjayK\AppData\Local\Temp\pip-install-76bfr7uy\lap_db498f4eb29b4e47a19c425b5b8f640f\setup.py", line 223, in setup_package from numpy.distutils.core import setup ModuleNotFoundError: No module named 'numpy.distutils' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for lap Running setup.py clean for lap Failed to build lap ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (lap)

inam1611 commented 1 month ago

Same issue occuring with my setup

Friman04 commented 3 weeks ago

same

sipho-mancam commented 1 week ago

The solution I found to this challenge that worked is

python 3.10.0 pip: 24.0 (latest) numpy: 1.26.3 (specifically this version works with most recent versions of other libraries that depend on numpy)