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 updatesudo 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.gitcd mujoco-pysudo apt-get updatesudo apt-get install libgl1-mesa-dev libgl1-mesa-glx libosmesa6-dev python3-pip python3-numpy python3-scipypip3 install -r requirements.txtsudo python3 setup.py install
- Error: command 'gcc' failed with exit status 1:
sudo apt-get updatesudo apt-get install python-dev ...