Step1:将gym克隆到计算机上:
git clone https://github.com/openai/gym.git
如果你的电脑没有安装git,那么键入
sudo apt install git
Step2:进入gym文件夹
cd gym
step3安装库
sudo apt-get install golang python3-dev python-dev libcupti-dev libjpeg-turbo8-dev make tmux htop chromium-browser git cmake zlib1g-dev libjpeg-dev xvfb libav-tools xorg-dev python-opengl libboost-all-dev libsdl2-dev swig
Step4:进行完全安装
pip install -e
apt-get install -y python-numpy python-dev cmake zlib1g-dev libjpeg-dev xvfb libav-tools xorg-dev python-opengl libboost-all-dev libsdl2-dev swig
结束