【问题标题】:Unable to install TensorFlow with miniconda on macOS Monterey无法在 macOS Monterey 上使用 miniconda 安装 TensorFlow
【发布时间】:2021-12-15 04:00:27
【问题描述】:

我尝试在这个问题之后安装 tensorflow:https://github.com/apple/tensorflow_macos/issues/153

虽然 M1 Monterey 的车轮不工作并显示以下错误。

pip install --upgrade --force --no-dependencies https://github.com/apple/tensorflow_macos/releases/download/v0.1alpha3/tensorflow_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl https://github.com/apple/tensorflow_macos/releases/download/v0.1alpha3/tensorflow_addons_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl

ERROR: tensorflow_macos-0.1a3-cp38-cp38-macosx_11_0_arm64.whl is not a supported wheel on this platform.

正在寻找更新的轮子。

【问题讨论】:

    标签: macos tensorflow miniconda macos-monterey


    【解决方案1】:

    请按照以下步骤成功安装 TensorFlow

    1. 下载并安装Anaconda或更小的Miniconda

    2. 在 macOS 或 Linux 上打开一个终端窗口。在 macOS 或 Linux 上使用默认的 bash shell。

    3. 为您的 TensorFlow 环境选择一个名称,例如“tf”。

    要安装当前版本的纯 CPU TensorFlow,推荐给初学者:

    conda create -n tf tensorflow
    conda activate tf
    

    或者,安装当前版本的 GPU

    conda create -n tf-gpu tensorflow-gpu
    conda activate tf-gpu
    

    更多详情,请查看this链接。

    【讨论】:

      猜你喜欢
      • 2022-12-04
      • 2021-06-08
      • 2022-06-25
      • 2022-08-20
      • 2022-11-07
      • 2022-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多