Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install stable-baselines3 cause installing gym==0.21 and throw error in gym setup command: 'extras_require' #1548

Closed
4 tasks done
yasirroni opened this issue Jun 12, 2023 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists RTFM Answer is the documentation

Comments

@yasirroni
Copy link

🐛 Bug

Bug installing stable_baselines3-1.8.0-py3-none-any.whl (174 kB) resulted in installing gym==0.21 instead of gymnasium==0.28.1 or latest gym==0.26.2.

pip install stable-baselines3 --upgrade
Collecting stable-baselines3
  Using cached stable_baselines3-1.8.0-py3-none-any.whl (174 kB)
Collecting gym==0.21 (from stable-baselines3)
  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.

To Reproduce

pip install stable-baselines3 --upgrade

Relevant log output / Error message

No response

System Info

No response

Checklist

  • I have checked that there is no similar issue in the repo
  • I have read the documentation
  • I have provided a minimal working example to reproduce the bug
  • I've used the markdown code blocks for both code and stack traces.
@yasirroni yasirroni added the bug Something isn't working label Jun 12, 2023
@araffin araffin added duplicate This issue or pull request already exists RTFM Answer is the documentation labels Jun 12, 2023
@yasirroni yasirroni changed the title [Bug]: bug title pip install stable-baselines3 cause installing gym==0.21 and throw error in gym setup command: 'extras_require' Jun 12, 2023
@yasirroni
Copy link
Author

Thanks. Didn't found that docs.
_
Current solution, install the alpha version: pip install stable-baselines3==2.0.0a13 from https://pypi.org/project/stable-baselines3/2.0.0a13/

@araffin
Copy link
Member

araffin commented Jun 12, 2023

Didn't found that docs.

https://stable-baselines3.readthedocs.io/en/master/guide/install.html

"Only Stable-Baselines3 2.x supports Gymnasium. As SB3 2.x is currently in beta, you will need to specify pip install "stable_baselines3[extra]>=2.0.0a9" explicitly, or install the master version (see below)."

Duplicate of #1455, #1406 and openai/gym#3176 (comment) and #1324 for the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists RTFM Answer is the documentation
Projects
None yet
Development

No branches or pull requests

2 participants