pmneila / PyMaxflow

Python library for creating flow networks and computing the maxflow/mincut (aka graph-cuts for Python)
http://pmneila.github.io/PyMaxflow/
242 stars 59 forks source link

Error installing on Windows 10 #59

Closed XinY-Z closed 1 year ago

XinY-Z commented 1 year ago

Came into this error when installing. Wonder if there is any way to work through this?

Building wheels for collected packages: PyMaxflow Building wheel for PyMaxflow (setup.py) ... error error: subprocess-exited-with-error

I also ran the manual setup with python setup.py build which failed as well

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

XinY-Z commented 1 year ago

I resolved the issue myself. Windows SDK is needed when installing Visual Studio: https://stackoverflow.com/questions/40018405/cannot-open-include-file-io-h-no-such-file-or-directory