baselines icon indicating copy to clipboard operation
baselines copied to clipboard

Import Error

Open JackieTseng opened this issue 9 years ago • 4 comments

Traceback (most recent call last):
  File "main.py", line 10, in <module>
    from baselines.common.mpi_fork import mpi_fork
ImportError: No module named mpi_fork

How can I fix this problem? THX.

JackieTseng avatar Jul 31 '17 17:07 JackieTseng

Install from source Clone the repo, move into it and do pip install -e .

Amathlog avatar Aug 01 '17 14:08 Amathlog

I've tried installing from source. Used Virtual env and tried using the same process on Mac and Ubuntu. Error occured only on Ubuntu. Using Python version 3.4.

Any other reason for the error?

VSNanditha avatar Nov 21 '18 03:11 VSNanditha

Hi @VSNanditha! Could you post the full stacktrace of the error here? Thanks!

pzhokhov avatar Nov 21 '18 18:11 pzhokhov

This trace is when I run train_cartpole from the sample experiments of deepq.

$ python train_cartpole.py 
Traceback (most recent call last):
    File "train_cartpole.py", line 3, in <module>
        from baselines import deepq
ImportError: No module named 'baselines'

I think i need to make changes to init.py but I did the same steps in my Mac and it works fine without any changes to the init files.

VSNanditha avatar Nov 22 '18 18:11 VSNanditha