scott huang
scott huang

Reputation: 2688

can't find rllib command after install ray

I want try this command:

rllib train --env=Pong-ram-v4 --run=PPO

but rllib is can't find, I can do this by directly execute train.py in rllib source code, but run with a command is certainly more elegant. can some one tell me what's wrong?

here is the command I install ray:

pip install ray[rllib]

I try install it with/without virutual environment, both failed.

Upvotes: 0

Views: 1158

Answers (2)

Michael Möbius
Michael Möbius

Reputation: 1050

The problem here is not the installation of ray/rllib. It is the python installation that is not done correctly. Meaning, that not all library paths are in the system path. You need to add the "site packages" folder to your system path.

Take a look here to figure out how to find the path: How do I find the location of my Python site-packages directory?

Upvotes: 0

aargun
aargun

Reputation: 136

pip install 'ray[rllib]' should work. When using special characters like '[' and ']', it is safe to use an apostrophe before and after the module name.

Upvotes: 2

Related Questions