eleurent / rl-agents

Implementations of Reinforcement Learning and Planning algorithms
MIT License
589 stars 153 forks source link

Can't import rl_agents in Python 3.7.1 #55

Open davidwitten opened 4 years ago

davidwitten commented 4 years ago

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.

eleurent commented 4 years ago

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...