【发布时间】:2021-04-22 11:48:01
【问题描述】:
我在 Apple Silicon M1 上安装了 macOS Big Sur,但无法在 python3 中安装 Tensorflow。 我删除了 xcode python3 并安装了 brew arm64 python3 (x86 python3 也不行)
我检查成功 64 bis 版本
python3 -c "import sys; print(sys.version)" or python -c "import struct; print(struct.calcsize('P')*8)"
3.8.7(默认,2020 年 12 月 30 日,02:09:32) [Clang 12.0.0 (clang-1200.0.32.28)]
这无论如何都可以工作,或者谁知道,如何做到这一点?
【问题讨论】:
-
目前还没有 Tensorflow 的通用轮子,因此您将无法通过
pip install安装它。查看github.com/apple/tensorflow_macos 以安装 Apple 提供的用于 M1 的 Tensorflow 的分支。根据自述文件,快捷方式是/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/apple/tensorflow_macos/master/scripts/download_and_install.sh)"。
标签: python-3.x tensorflow pip