Follow these steps to install OpenAI Gym, NumPy, and pandas:
- If you have Python 3.5 installed, then you can install gym using the pip command:
$ pip install gym
In case of a Permission denied error, try to give user permissions:
$ pip install gym -U
- For this example, we need NumPy and pandas, and you can install both using the following command:
$ python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
Alternatively, you can use the following command:
$ sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
Now that your setup is complete, let's look at both algorithms in action.