安装skill后,运行时提示关于 VM 环境中 numpy 兼容性问题:/usr/bin/bash: line 116: 45807 Illegal instruction (core dumped) python3 <<‘EOF’
这个错误是由于 numpy 版本与 VM 环境的 CPU 指令集不兼容导致的。“Illegal instruction” 表示 numpy 使用了当前虚拟机 CPU 不支持的高级指令(如 AVX、SSE 等)。
较新版本的 numpy 默认使用 AVX 等高级指令优化。降级到兼容版本:
bash
pip uninstall numpy pip install numpy==1.23.5
试试呢