今天尝试安装numpy,不论是pip install numpy还是pkg install numpy,都是安装失败,定位原因应该是python3.11版本不适配numpy版本,尝试了pip install numpy==1.24.2 方式也是失败,找了一圈也不知是版本指定不对还是该方案有问题,后来参考了一些链接的方案,成功了,记录下:
https://blog.youkuaiyun.com/zyehh/article/details/127990763
首先执行以下脚本,gnupg
$ curl -L https://its-pointless.github.io/setup-pointless-repo.sh | sh
成功后执行、
$ pkg install numpy
安装成功