-
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
AttributeError: module 'gym.envs.box2d' has no attribute 'CarRacing' #1989
Comments
Related #1603 |
|
about 2 years it's still broken and still broken. I'm on colab, it's pretty updo date |
pip install -e '.[box2d]' conda install -c anaconda swig |
pip install -e '.[box2d]' , When I try this I get: ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: |
@JohDonald It has to be run inside the checked-out repo. This worked for me (Windows, so had to remove the quotes around
|
it work for me ;thanks; |
I'm closing this as the issue appears to be resolved |
This post solved it for me. |
The suggestions were helpful for me too. It wasn't working at first but when i made the installations and then made a new notebook it worked like a charm. Just thought i should share. |
I've installed the required repository, but it still won't load CarCaring-v0:
pip install gym
pip install box2d
pip install box2d-kengz
pip install pyglet
from gym import envs
print(envs.registry.all())
[19]dict_values([EnvSpec(Copy-v0), EnvSpec(RepeatCopy-v0), EnvSpec(ReversedAddition-v0), EnvSpec(ReversedAddition3-v0), EnvSpec(DuplicatedInput-v0), EnvSpec(Reverse-v0), EnvSpec(CartPole-v0), EnvSpec(CartPole-v1), EnvSpec(MountainCar-v0), EnvSpec(MountainCarContinuous-v0), EnvSpec(Pendulum-v0), EnvSpec(Acrobot-v1), EnvSpec(LunarLander-v2), EnvSpec(LunarLanderContinuous-v2), EnvSpec(BipedalWalker-v2), EnvSpec(BipedalWalkerHardcore-v2), EnvSpec(CarRacing-v0)
gym里有CarRacing-v0环境,但是我仍然无法加载,是我缺少了某些库吗?求解答,谢谢!
The text was updated successfully, but these errors were encountered: