我已经成功安装了 TensorFlow 2.4.1 和 python 3.8.7(python@3.8 安装了 Homebrew(x86_64 版本,而不是 arm64),我可以导入它并从运行在罗塞塔。
当晚我的 Mac 更新到 Big Sur 11.2,结果今天我无法再导入 TensorFlow(我注意到它也清除了命令行工具,我不得不用 xcode-select --install
重新安装)。我不知道还发生了什么,也不知道我能做什么。我尝试重新安装相同版本的 python,重新创建一个虚拟环境,重新安装 tensorflow,什么都没有。有谁知道如何解决这个问题?
Python 3.8.7 (default, Feb 3 2021, 07:09:08)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
fish: 'python' terminated by signal SIGILL (Illegal instruction)
编辑:我知道有 MFC: After applying a CSplitterWnd to my CChildFrame the main window title isn't updated any more 的 TensorFlow 可以在 Apple Silicon 上本地运行,但我也需要使用 SciPy,但没有。