open_spiel
open_spiel copied to clipboard
Installation via pip failing on Windows 10/11 with "legacy-install-failure"
I'm on Windows 10, Python 3.8.2 (but the same issue is happening on another machine with Windows 11, Python 3.7.3).
Running py -m pip install open-spiel==1.0.2
in a Windows Powershell terminal (both with and without administrator privileges) results in a legacy-install-failure
error preceded by a subprocess-exited-with-error
error. The full output is dumped here (note that Pastebin doesn't format this properly in the first window, so scroll down to the raw input at the bottom of the page).
One small locale footnote: [WinError 2] Het systeem kan het opgegeven bestand niet vinden
translates to [WinError 2] The system cannot find the file specified
.
I just upgraded from Windows 7 recently, exactly because the OpenSpiel installation required CMake and clang++. Now that I have those (as evidenced by the output), different errors arise. Is OpenSpiel's pip install not meant to work on Windows, perhaps?
Hi @GitMew, we don't support installation via pip on Windows yet (and Windows support at all is a rather new feature). Hopefully we can look into this st some point this year.
For now you can follow these instructions on building in Windows from source: https://github.com/deepmind/open_spiel/blob/master/docs/windows.md