Error importing gym using Jupyter Notebook

Viewed 34

I´m trying to run some code using Jupyter and I can´t find a way of installing gym. This is the code:

!pip install gym==0.18
import gym

After all the "Requirement already satisfied"s (since I had already installed it) it says:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Input In [2], in <cell line: 2>()
      1 get_ipython().system('pip install gym')
----> 2 import gym

ModuleNotFoundError: No module named 'gym'

The same happens if I don´t specify a version, and use only "gym". I tried installing it using Terminal several ways, however, this shouldn´t be so complicated, right? Please help. Thanks in advance.

0 Answers
Related