Mac中三秒安装numpy

博主怒换macbook后,很多Python包要重新安装,从国外服务器下载包太慢,然后可以用国内镜像源。
阿里云
http://mirrors.aliyun.com/pypi/simple/

中国科技大学
https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban)
http://pypi.douban.com/simple/

清华大学
https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学
http://pypi.mirrors.ustc.edu.cn/simple/

比如我用豆瓣安装numpy,则在终端中输入:pip3 install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

三秒完成战斗,
l (15.1 MB)
|████████████████████████████████| 15.1 MB 4.4 MB/s
Installing collected packages: numpy
Successfully installed numpy-1.18.4

你可能感兴趣的:(Mac中三秒安装numpy)