how to install openai gym in ubuntu

Shell
sudo -H pip3 install gym #for minimum
sudo -H pip3 install gym[all] #for full
Source

Also in Shell: