绝望的bug:mac m1系统使用conda安装numpy报(have ‘arm64’, need ‘x86_64’)和Error importing numpy错误

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 架构的

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值