MAC系统中使用pip安装sklearn遇到的问题

时间:2024-04-05 10:00:55


转载请标明出处~

1.出现下载问题极度缓慢,且最终提示readtime out

一般出现这个问题可以通过换下载源或者设置超时时间,如pip --default-timeout=100 install -U sklearn(python3需要使用pip3),或者使用镜像网站来下载,如pip install -i http://pypi.douban.com/simple --proxy http://10.11.12.13:8008 sklearn(python3需要使用pip3)

2.出现问题:ERROR: Command errored out with exit status 1

这个主要是根据问题具体内容进行修改,本次博主遇见的问题如图:

MAC系统中使用pip安装sklearn遇到的问题
解决问题的方式:
在终端输出命令pip3 install --pre -f https://sklearn -nightly.scdn8.secure.raxcdn.com scikit-learn

3.若还有其他疑问,也可访问scikit-learn官网查询

官网链接: 请点击此处.