Stable-baselines: How to use DDPG when installing from git?

Created on 14 Mar 2020  路  4Comments  路  Source: hill-a/stable-baselines

How can I use DDPG when installing stable-baselines from git?

> pip install git+https://github.com/hill-a/stable-baselines
> python
>>> from stable_baselines import DDPG
ImportError: cannot import name 'DDPG'
RTFM question

Most helpful comment

Hello,

Did you try with the [mpi] option as mentioned in the documentation?

btw, we just did a release so pip install stable-baselines[mpi] --upgrade will give you the latest version.

All 4 comments

Hello,

Did you try with the [mpi] option as mentioned in the documentation?

btw, we just did a release so pip install stable-baselines[mpi] --upgrade will give you the latest version.

Wouldn't that defeat the purpose of installing through git? (i.e. getting the latest code)

The reason I was installing through pip+git was because I wanted to use the new callbacks - are those included in the latest pip release?

We just released the newest version 2.10.0 on PyPi, too, so you can now get those callbacks by installing with pip. In any case, use the [mpi] option as arrafin said. If that works, you can close this issue.

Yes, that worked. Thanks!

Was this page helpful?
0 / 5 - 0 ratings