无法安装 ray[tune] tune-sklearn

发布于 2025-01-09 18:40:53 字数 1722 浏览 7 评论 0原文

我正在尝试在我的计算机上安装 ray[tune] tune-sklearn 但始终失败。我使用的是配备 Big Sur 版本 11.6 和 Python 3.9.7 的 MacBook Pro 2019(默认,2021 年 9 月 16 日,08:50:36)[Clang 10.0.0 ] :: Anaconda, Inc. on darwin。除了这个之外,我尝试使用 conda install 或 pip install 来安装所有其他软件包。我自己也在努力在网上寻找答案。我使用的是 Python 3.8,但我删除了它并安装了 3.9,因为我认为这是问题所在。提前道歉,我是数据挖掘的新手,仍然不了解很多。

我尝试过

conda install -c conda-forge -y ray-tune tune-sklearn

但回来了:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - ray-tune

Current channels:

  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

我也尝试过

pip install ray[tune] tune-sklearn

但回来了

zsh: no matches found: ray[tune]

任何帮助将不胜感激,谢谢。

更新:

我也尝试过

pip install 'ray[tune]'

并回来了

ERROR: Could not find a version that satisfies the requirement ray[tune] (from versions: none)
ERROR: No matching distribution found for ray[tune]

I'm trying to install ray[tune] tune-sklearn on my machine but keeps failing. I'm using a MacBook Pro 2019 with Big Sur Version 11.6 and Python 3.9.7 (default, Sep 16 2021, 08:50:36) [Clang 10.0.0 ] :: Anaconda, Inc. on darwin. All other packages I've tried to installed fine either using conda install or pip install except for this one. I'm struggling to find an answer online myself. I was on Python 3.8 but I removed this and installed 3.9 as I thought this was the problem. Apologies in advance, I'm new to data mining and still don't know a great deal yet.

I tried

conda install -c conda-forge -y ray-tune tune-sklearn

But got back this:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - ray-tune

Current channels:

  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/osx-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

I also tried

pip install ray[tune] tune-sklearn

But got back

zsh: no matches found: ray[tune]

Any help would be greatly appreciated, thank you.

Update:

I also tried

pip install 'ray[tune]'

And got back

ERROR: Could not find a version that satisfies the requirement ray[tune] (from versions: none)
ERROR: No matching distribution found for ray[tune]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

咆哮 2025-01-16 18:40:53

ray[tune]Ray 中的一个库支持可扩展超参数调整的分布式计算项目 --不是独立的 Python 包。您应该能够使用以下命令安装具有正确依赖项的 ray

pip install "ray[tune]"

安装 Ray 之后,您可以使用以下任一方法在 Python 项目中引用它:

import ray[tune]

from ray import tune

ray[tune] is a library within the Ray distributed compute project that supports scalable hyperparameter tuning -- not a stand-alone Python package. You should be able to install ray with the proper dependencies using:

pip install "ray[tune]"

After Ray has been installed, you can reference it within your Python project using either:

import ray[tune]

or

from ray import tune
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文