rl-agents icon indicating copy to clipboard operation
rl-agents copied to clipboard

Can't import rl_agents in Python 3.7.1

Open davidwitten opened this issue 3 years ago • 1 comments

I followed to instructions listed in the README to import rl_agents, but I wasn't able to get it to work.

I'm running Python 3.7.1 on Mac, and I ran the following commands:

pip3 install --user git+https://github.com/eleurent/highway-env
pip3 install --user git+https://github.com/eleurent/rl-agents

Within Python, I was able to import highway_env but could not import rl_agents. Is there anything else I should do to set this up?

Interestingly, when I run pip3 list, rl-agents appears in the list.

davidwitten avatar Nov 06 '20 18:11 davidwitten

That is very strange, it should be working, all the more if it appears in the pip3 list.

Maybe check that the repo is indeed cloned into your /home/<user>/.local/lib/python3.7/site-packages? (since you installed with --user as recommended, else you can look into <python_path>/Lib/site-packages)?

Or you could try to pip remove it, and then run instead pip3 install git+https://github.com/eleurent/rl-agents#egg=rl-agents

If it also fails, I guess you can just clone the repository and manually add it to your python path...

eleurent avatar Nov 10 '20 10:11 eleurent