In [1]:
import gym
#import tensorflow as tf
env = gym.make('Breakout-v0')
[2017-10-22 15:07:36,563] Making new env: Breakout-v0
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
C:\Anaconda2\envs\tensorflow_c\lib\site-packages\gym\envs\atari\atari_env.py in <module>()
8 try:
----> 9 import atari_py
10 except ImportError as e:
ModuleNotFoundError: No module named 'atari_py'
During handling of the above exception, another exception occurred:
DependencyNotInstalled Traceback (most recent call last)
<ipython-input-1-0e66e07dd37e> in <module>()
1 import gym
2 #import tensorflow as tf
----> 3 env = gym.make('Breakout-v0')
C:\Anaconda2\envs\tensorflow_c\lib\site-packages\gym\envs\registration.py in make(id)
159
160 def make(id):
--> 161 return registry.make(id)
162
163 def spec(id):
C:\Anaconda2\envs\tensorflow_c\lib\site-packages\gym\envs\registration.py in make(self, id)
117 logger.info('Making new env: %s', id)
118 spec = self.spec(id)
--> 119 env = spec.make()
120 if (env.spec.timestep_limit is not None) and not spec.tags.get('vnc'):
121 from gym.wrappers.time_limit import TimeLimit
C:\Anaconda2\envs\tensorflow_c\lib\site-packages\gym\envs\registration.py in make(self)
83 raise error.Error('Attempting to make deprecated env {}. (HINT: is there a newer registered version of this env?)'.format(self.id))
84
---> 85 cls = load(self._entry_point)
86 env = cls(**self._kwargs)
87
C:\Anaconda2\envs\tensorflow_c\lib\site-packages\gym\envs\registration.py in load(name)
15 def load(name):
16 entry_point = pkg_resources.EntryPoint.parse('x={}'.format(name))
---> 17 result = entry_point.load(False)
18 return result
19
C:\Anaconda2\envs\tensorflow_c\lib\site-packages\pkg_resources\__init__.py in load(self, require, *args, **kwargs)
2339 if require:
2340 self.require(*args, **kwargs)
-> 2341 return self.resolve()
2342
2343 def resolve(self):
C:\Anaconda2\envs\tensorflow_c\lib\site-packages\pkg_resources\__init__.py in resolve(self)
2345 Resolve the entry point from its module and attrs.
2346 """
-> 2347 module = __import__(self.module_name, fromlist=['__name__'], level=0)
2348 try:
2349 return functools.reduce(getattr, self.attrs, module)
C:\Anaconda2\envs\tensorflow_c\lib\site-packages\gym\envs\atari\__init__.py in <module>()
----> 1 from gym.envs.atari.atari_env import AtariEnv
C:\Anaconda2\envs\tensorflow_c\lib\site-packages\gym\envs\atari\atari_env.py in <module>()
9 import atari_py
10 except ImportError as e:
---> 11 raise error.DependencyNotInstalled("{}. (HINT: you can install Atari dependencies by running 'pip install gym[atari]'.)".format(e))
12
13 import logging
DependencyNotInstalled: No module named 'atari_py'. (HINT: you can install Atari dependencies by running 'pip install gym[atari]'.)
In [ ]:
Content source: wasit7/cs634
Similar notebooks: