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

[Question] Error Installing stable-baselines3[extra] on Windows #2033

Open
4 tasks done
bajramienes opened this issue Nov 4, 2024 · 2 comments
Open
4 tasks done

[Question] Error Installing stable-baselines3[extra] on Windows #2033

bajramienes opened this issue Nov 4, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists question Further information is requested windows

Comments

@bajramienes
Copy link

❓ Question

I encountered an error while trying to install stable-baselines3[extra] using pip. The following command was executed:
pip install stable-baselines3[extra]

Error Output:

Collecting stable-baselines3[extra]
  Using cached stable_baselines3-2.3.2-py3-none-any.whl.metadata (5.1 kB)
Collecting gymnasium<0.30,>=0.28.1 (from stable-baselines3[extra])
  Using cached gymnasium-0.29.1-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: numpy>=1.20 in c:\users\enes\appdata\local\programs\python\python313\lib\site-packages (from stable-baselines3[extra]) (2.1.2)
INFO: pip is looking at multiple versions of stable-baselines3[extra] to determine which version is compatible with other requirements. This could take a while.
Collecting stable-baselines3[extra]
  Using cached stable_baselines3-2.2.1-py3-none-any.whl.metadata (5.0 kB)
  Using cached stable_baselines3-2.1.0-py3-none-any.whl.metadata (5.2 kB)
  Using cached stable_baselines3-2.0.0-py3-none-any.whl.metadata (5.4 kB)
Collecting gymnasium==0.28.1 (from stable-baselines3[extra])
  Using cached gymnasium-0.28.1-py3-none-any.whl.metadata (9.2 kB)
Collecting stable-baselines3[extra]
  Using cached stable_baselines3-1.8.0-py3-none-any.whl.metadata (5.0 kB)
Collecting gym==0.21 (from stable-baselines3[extra])
  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
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        ...
      AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
      [end of output]

error: metadata-generation-failed

OS: Windows
Python version: 3.13

Could you provide guidance on how to resolve this issue, or suggest any compatible alternatives?

Regards

Checklist

@bajramienes bajramienes added the question Further information is requested label Nov 4, 2024
@araffin araffin added duplicate This issue or pull request already exists windows labels Nov 4, 2024
@araffin
Copy link
Member

araffin commented Nov 4, 2024

Hello,
What version of pip are you using?
Could you try with python 3.11/asking for a specific sb3 version ?

Pip is downloading some old version for some reasons and gym cannot be installed.

@bajramienes
Copy link
Author

Hi @araffin, my pip version is 24.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Further information is requested windows
Projects
None yet
Development

No branches or pull requests

2 participants