Closed wilhem closed 5 days ago
Hello, pip should have warned you that this version is incompatible with sb3 (we have a pr opened for gymnasium 1.0). If you re-install sb3 with the extra package, it will install the correct shimmy version (see doc).
EDIT: the PR https://github.com/DLR-RM/stable-baselines3/pull/1837
Hello,
I looked back to the installation output of pip.
That's true, it says:
stable_baselines3 2.3.2 requires gymnasium<0.30,>=0.28.1, but you have gymnsasium 1.0.0a2 which is incompatible.
But why did pip install shimmy anyway? I would have used conda. With conda I do not have such problem. It ask you before installing anything.
pip doesn't enforce strict compatibility (which is handy when dependencies version ranges are wrongly specified/too tight, but can have issues like yours) and as far as i know, it has no option yet to enforce it. However, you have alternatives like pixi, uv, conda or poetry.
Closing as the original question was answered and a PR exists.
🐛 Bug
I installed today the package
stable_baselines3
using pip. According to pip's output, the version installed is the 2.3.2 Along with this versionGymnasium 0.29.1
was installed. Since the packageshimmy
was missing, I proceeded to install it using pip. Shimmy removedgymnasium 0.29.1
and installedgymnasium 1.0.0a2
instead.Trying to import stable_baselines3 leads to the following error:
To Reproduce
Relevant log output / Error message
System Info
Since it gives the same error as above, it does not print any information
Checklist