ray-project / ray

Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
https://ray.io
Apache License 2.0
33.9k stars 5.76k forks source link

[<Ray component: Core|RLlib|etc...>] #45856

Closed Lionss3000 closed 4 months ago

Lionss3000 commented 5 months ago

Description

File "D:\AI\Multi-agent Stock Trading\Multi-agent-Stock-Trading1", line 80, in import ray ModuleNotFoundError: No module named 'ray'

Use case

  1. 定义多智能体系统 使用 RLlib 来设置多个智能体,并配置不同的量化交易模型。

"""

import ray

simonsays1980 commented 4 months ago

This is the Ray project github repository. What you are mentioning above is a another repo that is importing ray. You need to isntall ray first via python -m pip install "ray[default,rllib,tune]" from the command line.