官术网_书友最值得收藏!

  • Python Reinforcement Learning
  • Sudharsan Ravichandiran Sean Saito Rajalingappaa Shanmugamani Yang Wenzhuo
  • 216字
  • 2021-06-24 15:17:27

Common error fixes

There is a good chance that you will encounter any of the following errors while installing gym. If you get these errors, just run the following commands and try reinstalling:

  • Failed building wheel for pachi-py or Failed building wheel for pachi-py atari-py:
sudo apt-get update
sudo apt-get install xvfb libav-tools xorg-dev libsdl2-dev swig cmake
  • Failed building wheel for mujoco-py:
git clone https://github.com/openai/mujoco-py.git
cd mujoco-py
sudo apt-get update
sudo apt-get install libgl1-mesa-dev libgl1-mesa-glx libosmesa6-dev python3-pip python3-numpy python3-scipy
pip3 install -r requirements.txt
sudo python3 setup.py install
  • Error: command 'gcc' failed with exit status 1:
sudo apt-get update
sudo apt-get install python-dev
sudo apt-get install libevent-dev

Similarly, we can install OpenAI Universe by fetching the universe repository and installing the universe as a package:

cd ~
git clone https://github.com/openai/universe.git
cd universe
pip install -e .

The installation is shown in the following screenshot:

As already said, Open AI Universe needs Docker, as the majority of Universe environments run inside a Docker container.

So let's build a Docker image and name it universe:

docker build -t universe .

Once the Docker image is built, we run the following command, which starts a container from the Docker image:

docker run --privileged --rm -it -p 12345:12345 -p 5900:5900 -e DOCKER_NET_HOST=172.17.0.1 universe /bin/bash
主站蜘蛛池模板: 嘉定区| 章丘市| 新营市| 天祝| 宽甸| 凭祥市| 鄂托克前旗| 柳州市| 宁阳县| 农安县| 全州县| 宜宾市| 江川县| 平遥县| 松原市| 齐齐哈尔市| 西和县| 崇明县| 新建县| 东乡县| 大埔县| 恩平市| 娄底市| 南川市| 清远市| 奉新县| 正蓝旗| 义马市| 井冈山市| 正蓝旗| 南开区| 澄江县| 荆门市| 太仆寺旗| 太白县| 崇仁县| 景宁| 眉山市| 石城县| 抚松县| 增城市|