You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2026. It is now read-only.
I got the following error while trying to install stable baselines 3
Checking the setup.py of stable baselines 3, it was supposed to install gym version 0.21, so when I tried to install gym version 0.21 separately, the same error came out.
how do i solve it?
Code example
Collecting gym==0.21
Using cached gym-0.21.0.tar.gz (1.5 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
System Info
I installed with pip install gym==0.21 from docker on ubuntu 22.04 distro with wsl2 on windows 11.
docker base image is also ubuntu 22.04
Python version is 3.10.6.
Checklist
I have checked that there is no similar issue in the repo (required)
Describe the bug
I got the following error while trying to install stable baselines 3
Checking the setup.py of stable baselines 3, it was supposed to install gym version 0.21, so when I tried to install gym version 0.21 separately, the same error came out.
how do i solve it?
Code example
System Info
I installed with pip install gym==0.21 from docker on ubuntu 22.04 distro with wsl2 on windows 11.
docker base image is also ubuntu 22.04
Python version is 3.10.6.
Checklist