无法为苹果硅安装TensorFlow-Deps

发布于 2025-01-23 18:12:38 字数 1566 浏览 5 评论 0原文

我正在尝试由Apple Silicon Mac进行设置,以便能够使用其GPU训练TF型号。

我尝试关注官方说明,但我会遇到以下错误:

>>> conda install -c apple tensorflow-deps

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:

  - tensorflow-deps

Current channels:

  - https://conda.anaconda.org/apple/osx-64
  - https://conda.anaconda.org/apple/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
  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/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.

不确定是否确定这应该很重要,但是我没有安装miniforge,因为我已经全面安装了Anaconda。当然,这不是原因吗? (我不想安装miniforge,不要通过使用多个conda安装来弄乱我的env)。

我确实在导航器中手动添加了“ Apple”频道,并且包装似乎确实存在:

https:/https:/ /anaconda.org/apple/tensorflow-deps

我在这里缺少什么?

I'm trying to set-up by Apple Silicon Mac to be able to train tf models using its GPU.

I tried following the official instructions but I am getting the following error:

>>> conda install -c apple tensorflow-deps

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:

  - tensorflow-deps

Current channels:

  - https://conda.anaconda.org/apple/osx-64
  - https://conda.anaconda.org/apple/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
  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/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.

Not sure if it should matter but I didn't install Miniforge because I already have Anaconda installed comprehensively. Surely, this can't be the reason? (I didn't want to install Miniforge not to mess up my env by having multiple Conda installations).

I did add the "apple" channel in the Navigator manually and the package does seem to be there:

https://anaconda.org/apple/tensorflow-deps

What am I missing here?

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

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

发布评论

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

评论(1

半衾梦 2025-01-30 18:12:38

我也为此挣扎了一段时间。我能够获得成功的环境的唯一方法确实是通过Mini Forge安装Conda。基于此链接我相信这是因为这是因为其他包装anconda anaconda predins pre-pre-installs不兼容手臂。

我关注此线程以删除我的anaconda安装。完成此操作后,指令您链接应该成功。

I also struggled with this for a while. The only way I was able to get a successful environment set up was indeed installing conda through mini forge. Based on this link I believe this is because of the other packages Anaconda pre-installs that are not ARM compatible.

I followed this thread to remove my Anaconda installation. Once that is done the instructions you linked should be successful.

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