Traceback (most recent call last):
File "run.py", line 128, in <module>
from isaacgym import gymutil
ModuleNotFoundError: No module named 'isaacgym'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run.py", line 130, in <module>
raise Exception("Please install isaacgym to run Isaac Gym tasks!")
Exception: Please install isaacgym to run Isaac Gym tasks!
如果使用 conda
或 virtualenv
创建了虚拟环境,请确保在虚拟环境中安装了 Isaac Gym:
激活虚拟环境:
conda activate your_env_name # 对于 conda
source your_env_name/bin/activate # 对于 virtualenv
添加 Isaac Gym 到 Python 路径:
export PYTHONPATH=$PYTHONPATH:/path_to_isaacgym/python
安装完成后,尝试在 Python 解释器中导入模块,验证是否成功:
import isaacgym