python 3.8.7 上的 TensorFlow 2.4.1 在导入时被 SIGILL 终止Apple Silicon + Rosetta

问题描述

我已经成功安装了 TensorFlow 2.4.1 和 python 3.8.7([email protected] 安装了 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 @R_181_4045@ion.
>>> 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,但没有。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)