huawei-noah / SMARTS

Scalable Multi-Agent RL Training School for Autonomous Driving
MIT License
954 stars 190 forks source link

[Help Request] Why "ModuleNotFoundError: No module named 'gymnasium' " #2151

Closed Silkbamboo closed 7 months ago

Silkbamboo commented 7 months ago

High Level Description

when I want to run a example, the error is "ModuleNotFoundError: No module named 'gymnasium' " but I can find 'gymnasium' in '/smarts/env/gymnasium'

Version

2.0.1

Operating System

ubuntu 18.04

Problems

when I want to run a example, the error is ModuleNotFoundError: No module named 'gymnasium' but I can find 'gymnasium'in SMARTS/smarts/env/gymnasium

(.venv) root@czjvm:/home/czj/SMARTS# scl run examples/e1_egoless.py 
Traceback (most recent call last):
  File "examples/e1_egoless.py", line 4, in <module>
    import gymnasium as gym
ModuleNotFoundError: No module named 'gymnasium'
Killed

image

image

Gamenot commented 7 months ago

This is the same as #2152.