Code on RL Course Unit 1 needs to be updated, doesn't execute

I have the exact same problem as detailed in this post: RL Course Unit 1: "python setup.py egg_info did not run successfully"

Except the solution posted in this thread doesn’t seem to work anymore. Is there a newer solution?

1 Like

Try this version instead today. Seems working.

!sudo apt-get update -qq
!sudo apt-get install -y swig cmake

!pip install -U pip setuptools wheel
!pip install "gymnasium==0.28.1" "box2d-py==2.3.5" "pygame>=2.6.0"
!pip install "stable-baselines3==2.0.0a5" "huggingface_sb3==3.0"

Cool this gets me through the setup blocks I think, but the code in “Understand Gymnasium and how it works” doesn’t run, the irst line env = gym.make gives an error. I think maybe because of an earlier setup issue that still exists. Maybe I’ll find a different RL tutorial.

1 Like