#!/usr/bin/env python
from setuptools import setup
import sys
assert sys.version_info.major == 3 and sys.version_info.minor >= 6, \
"Safety Gym is designed to work with Python 3.6 and greater. " \
+ "Please install it before proceeding."
setup(
name='safety_gym',
packages=['safety_gym'],
install_requires=[
'gym~=0.15.3',
'joblib~=0.14.0',
'mujoco-py<2.2,>=2.1',
'numpy~=1.17.4',
'xmltodict~=0.12.0',
],
)
1. mujoco安装
Extract the downloaded mujoco210 directory into ~/.mujoco/mujoco210.
安装完成后,需要将mujoco链接到显卡,打开环境变量文件
bashrc
,填写以下路径:2.安装safety-gym
按照官方仓库安装: 即
然后mujoco-py安装不上,查找资料后,将
safety-gym
文件夹下的setup.py
修改成如下:即可。
参考: