Marc Vana
Marc Vana

Reputation: 193

Anaconda how to import keras-rl

Sorry if this is a 'nooby' question, but I really don't know how to solve it. I've installed keras and a lot of other stuff for deep learning with Ananconda, but now I want to try to make something with Reinforcement Learning. So I've read that I need to install keras-rl, and I installed it as follows:

git clone https://github.com/matthiasplappert/keras-rl.git
cd keras-rl
python setup.py install

I have also installed gym:

pip install gym

But when I write in Anaconda Spyder 4 (4.1.2):

from rl.agents.dqn import DQNAgent
from rl.policy import EpsGreedyQPolicy
from rl.memory import SequentialMemory

... it says that ' ModuleNotFoundError: No module named 'rl' '. What's wrong? Thanks in advance for any answer!

Upvotes: 3

Views: 3546

Answers (1)

Ilknur Mustafa
Ilknur Mustafa

Reputation: 311

Try installing it from the Conda command line, probably the environments don't match for Anaconda to realize that rl is a library

Upvotes: 3

Related Questions