-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
[Bug Report] Gym==0.21 not installing anymore #3200
Comments
SOLUTION - Original text: What python version is this for? |
Having exactly the same issue. Was also working for me yesterday. I'm on Python 3.9.16, OS Linux. |
I don't know what exactly happened, but it's likely something to do with the new version of !pip install --upgrade setuptools==66
!pip install --upgrade gym==0.21
import gym
gym.version.VERSION
>>> '0.21.0' There are still some warnings along the way, so there might be a deeper issue somewhere. All that being said, we strongly encourage everyone to migrate to using Gymnasium, since gym won't be receiving any more updates |
Thanks to @RedTachyon the tools worked. But it's really strange because it didn't work in the first time. I'm aware about gymnasium, but then stable-baselines3 and box2d must be updated. =/ |
Python version 3.9.16 Solution: @RedTachyon post Thanks for the solution! Issue closed ;) |
SB3 are planning on adding gymnasium as the primary backend (DLR-RM/stable-baselines3#1327). We are not sure on the timeline, might be a couple of months until the pr is merged |
Reopening to other users trying to install gym in the future. |
The fun bug is based on the The recent version of setuptools bugs out with the trailing fullstop We can't do anything with respect to As a workaround, I have forked |
Hi @Pythoniasm, I don't think adding backward compatibility to setuptools is a task we want to undertake. Setuptools uses If anyone is interested in using specific versions of Footnotes
|
@Pythoniasm and @abravalheri thanks for that. |
@pseudo-rnd-thoughts I fully understand the desire to not support the old version anymore. However, there are many research paper codebases and reimplementations of papers who rely on the v0.21.0 version. To provide this backwards compatibility I made a very small change that could be shipped as branch and then as tag v0.21.1 to PyPy: https://github.com/Pythoniasm/gym-fork/tree/fix-v0.21.0 If you open a dedicated branch (rebasing the master would be too crazy), I am happy to create a pull request (can't do that against tags). @abravalheri I guess that would be a more open/transparent fix instead of providing special wheels. The requirements chain across repositories is real - I am interested if we would spin that further to |
Fixes error in google colab, see openai/gym#3200
I had the same issue as OP and tried changing setup tools version. After doing this, attemping to install gym only resulted in the following error:
EDIT: This problem can be solved by |
Try to install the following: then activate the virtual env and install the following: It will definitely work |
Creat a new env, make sure you setuptools and wheels are in 65.5.0 and 0.38.4 |
Describe the bug
Fail to install gym==0.21 (necessary for installing stable-baselines3 and gym[box2d])
Code
!pip install gym==0.21
System Info
Additional context
Yesterday (22th March, 2023) everything worked normally. Installed
swig
andcmake
Log error
Checklist
The text was updated successfully, but these errors were encountered: