Open pexlechris opened 4 years ago
Thanks, this project hasn't been updated in a while and seems to no longer work with newer versions of python
You may want to try SciPy's solution- https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.linear_sum_assignment.html
(I'll try to fix this at some point, but not sure when. Meanwhile I'll add a link to SciPy in the README)
When try to install hungarian in Anaconda Promt I get the following message. Why?
(base) PS C:\Windows\system32> pip install hungarian Collecting hungarian Using cached https://files.pythonhosted.org/packages/b2/f9/9cccbbb8c724c4eff5d006bd3fe185e91d121caf2ffd345fe31421f1c886/hungarian-0.2.3.tar.gz Building wheels for collected packages: hungarian Building wheel for hungarian (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\pexle\AppData\Local\Temp\pip-install-up8efxqd\hungarian\setup.py'"'"'; file='"'"'C:\Users\pexle\AppData\Local\Temp\pip-install-up8efxqd\hungarian\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\pexle\AppData\Local\Temp\pip-wheel-g1mta5do' --python-tag cp37 cwd: C:\Users\pexle\AppData\Local\Temp\pip-install-up8efxqd\hungarian\ Complete output (22 lines): running bdist_wheel running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "hungarian" sources
nothing done with h_files = ['asp.h'] build_src: building npy-pkg config files running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler customize MSVCCompiler using build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler Missing compiler_cxx fix for MSVCCompiler customize MSVCCompiler using build_ext building 'hungarian' extension compiling C sources error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
ERROR: Failed building wheel for hungarian Running setup.py clean for hungarian Failed to build hungarian Installing collected packages: hungarian Running setup.py install for hungarian ... error ERROR: Command errored out with exit status 1: command: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\pexle\AppData\Local\Temp\pip-install-up8efxqd\hungarian\setup.py'"'"'; file='"'"'C:\Users\pexle\AppData\Local\Temp\pip-install-up8efxqd\hungarian\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\pexle\AppData\Local\Temp\pip-record-cxnj44aq\install-record.txt' --single-version-externally-managed --compile cwd: C:\Users\pexle\AppData\Local\Temp\pip-install-up8efxqd\hungarian\ Complete output (22 lines): running install running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "hungarian" sources
nothing done with h_files = ['asp.h'] build_src: building npy-pkg config files running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler customize MSVCCompiler using build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler Missing compiler_cxx fix for MSVCCompiler customize MSVCCompiler using build_ext building 'hungarian' extension compiling C sources error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\pexle\AppData\Local\Temp\pip-install-up8efxqd\hungarian\setup.py'"'"'; file='"'"'C:\Users\pexle\AppData\Local\Temp\pip-install-up8efxqd\hungarian\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\pexle\AppData\Local\Temp\pip-record-cxnj44aq\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.