google-deepmind / open_spiel

OpenSpiel is a collection of environments and algorithms for research in general reinforcement learning and search/planning in games.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python 3.12 installation

JasonMendoza2008 opened this issue · comments

I'm using Ubuntu 22.04.2 LTS.

Everything works on my Python 3.10.12 but when executing those lines for the installation on a virtual environment on Python 3.12.0:

python3 -m pip install --upgrade setuptools pip
python3 -m pip install --no-binary open_spiel

I get a "subprocess error likely to not be linked to pip".

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for open_spiel
Failed to build open_spiel
ERROR: Could not build wheels for open_spiel, which is required to install pyproject.toml-based projects

Note (and the README.md probably should be changed accordingly), I actually run:

python3 -m pip install --upgrade setuptools pip
python3 -m pip install --no-binary=:open_spiel: open_spiel

because that's how the flag --no-binary seems to have to be used (https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-no-binary)

Without the =:open_spiel: I have the following error on both 3.10 and 3.12:

ERROR: You must give at least one requirement to install (see "pip help install")

BTW: really isn't a big deal I just wanted to raise it if it was not known and potentially help clarify the README.md

Thanks, we'll update the README.md.

And this reminds me that we should probably be providing binary wheels for 3.12. We'll update this soon.