Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 没有名为';ray.rllib.agents.ppo.ppo#u policy';_Python_Ray - Fatal编程技术网

Python 没有名为';ray.rllib.agents.ppo.ppo#u policy';

Python 没有名为';ray.rllib.agents.ppo.ppo#u policy';,python,ray,Python,Ray,我有以下代码: 从复制导入deepcopy 导入json 导入光线 尝试: 从ray.rllib.agents.agent导入get_agent_类 除恐怖外: 从ray.rllib.agents.registry导入get_agent_类 从ray.rllib.agents.ppo.ppo_策略导入PPOTFPolicy 从光线导入调谐 从ray.tune.registry导入寄存器\u env 从ray.tune导入运行\u实验 我得到一个错误: No module named 'ray.

我有以下代码:

从复制导入deepcopy
导入json
导入光线
尝试:
从ray.rllib.agents.agent导入get_agent_类
除恐怖外:
从ray.rllib.agents.registry导入get_agent_类
从ray.rllib.agents.ppo.ppo_策略导入PPOTFPolicy
从光线导入调谐
从ray.tune.registry导入寄存器\u env
从ray.tune导入运行\u实验
我得到一个错误:

No module named 'ray.rllib.agents.ppo.ppo_policy'
我试过:

pip install ray;

我重新安装了系统并重新配置了环境以解决此问题

请使用代码块并在问题中添加更多详细信息。也请包括代码部分。