Jun-15-2018, 08:50 AM
Hi everyone,
I did the pip install gym successfully in the anaconda prompt and now I am trying to run the following code in spyder and am getting an error.
env = gym.make("CartPole-v0")
C:\Users\SGrah\Anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "<ipython-input-1-e6aa91c6b2ec>", line 21, in <module>
import gym
ModuleNotFoundError: No module named 'gym'
Any ideas as to why it is not working?
I did the pip install gym successfully in the anaconda prompt and now I am trying to run the following code in spyder and am getting an error.
import gym env = gym.make("CartPole-v0")import gym
env = gym.make("CartPole-v0")
C:\Users\SGrah\Anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from
float
to np.floating
is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type
.from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "<ipython-input-1-e6aa91c6b2ec>", line 21, in <module>
import gym
ModuleNotFoundError: No module named 'gym'
Any ideas as to why it is not working?