mac m1系统使用conda安装numpy报错
ImportError: dlopen(/Library/Python/3.9/site-packages/Ixml/etree.cpython-39-darwin.so, 0x0002):): tried: '/Library/Python/3.9/site-packages/lxml/etree,
s.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need '×86_64')
搜遍全网,大家都聚焦在更改架构。
当我跟着网上的节奏更换架构,发现并不能解决问题,甚至还新增了问题,真是绝望
ImportError: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there.
此时我的关注点重新回到了核心问题
(have ‘arm64’, need ‘x86_64’)
这究竟是啥意思?我安装的是arm
版本,那为什么要用x86_64版本的?
疯狂思考🤔
在 Mac M1 系统的 Conda 环境中已经安装了为 ARM64 架构编译的 NumPy,但在运行时却提示需要 x86_64,可能是因为某些原因导致系统在执行时尝试使用 x86_64 架构的