Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[train/tune] Raise actionable error message for missing dependencies (r…
…ay-project#38497) When users `pip install ray` but not `ray[train]`/`ray[tune]`, they can run into confusing error messages, such as: ``` ModuleNotFoundError: No module named 'pyarrow' ``` With this PR, we import the core library requirements in the respective `__init__.py` and raise an actionable error message if they are not found: ``` ImportError: Can't import ray.train as some dependencies are missing. Run `pip install ray[train]` to fix. ``` Signed-off-by: Kai Fricke <kai@anyscale.com>
- Loading branch information