Installing OpenAI Gym, NumPy, and pandas

Follow these steps to install OpenAI Gym, NumPy, and pandas:

  1. 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
  1. 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.23.101.60