2

I ran the following code in Google Colab:

    from baselines.common.atari_wrappers import make_atari, wrap_deepmind

And got the following error:

    ModuleNotFoundError: No module named 'baselines.common'

I tried !pip install baselines, but it didn't fixed the issue.....

3 Answers3

4

try following instruction:

!apt install swig cmake libopenmpi-dev zlib1g-dev
!pip install stable-baselines[mpi]==2.8.0 box2d box2d-kengz

from

amirt4
  • 136
  • 7
  • 2
    We do also would have to run this `%tensorflow_version 1.x`..... and change the line `from baselines.common.atari_wrappers import make_atari, wrap_deepmind` to `from stable_baselines.common.atari_wrappers import make_atari, wrap_deepmind` –  Jan 10 '21 at 07:11
1

Try this

import sys
!{sys.executable} -m pip install baselines
Sagun Devkota
  • 495
  • 3
  • 10
  • Running that code downloads some stuff and prints this: ERROR: Command errored out with exit status. And then does not fixes anything –  Dec 17 '20 at 11:14
0

This is most likely due to an outdated version. This issue used to be encountered and was later fixed in an update. Updating / Installing the latest version should do the job.

OneCoolBoi
  • 86
  • 5