美文网首页
MacOS 安装numpy报错:ERROR: Could not

MacOS 安装numpy报错:ERROR: Could not

作者: song91425 | 来源:发表于2022-06-29 17:44 被阅读0次

导语:本人使用的环境是python 3 环境

1 解决方法,升级pip

// 1 升级命令,如果python是默认的,在终端执行
/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip install --upgrade pip

// 2 或者可以执行
pip3 -m pip install --upgrade pip

2 安装

// 指定清华下载源
pip3 install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple/    

// 使用官方下载源
pip3 install numpy

注:-i 后是指定下载源,官方下载很慢可以切换下载源

3 下载源参考

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
阿里云 http://mirrors.aliyun.com/pypi/simple/

相关文章

网友评论

      本文标题:MacOS 安装numpy报错:ERROR: Could not

      本文链接:https://www.haomeiwen.com/subject/eizfbrtx.html