Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

https://blog.csdn.net/qq_22476313/article/details/120342538

python.exe -m pip install scikit-learn -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

解决方式:在 pip install xxx 后面加上镜像路径(xxxx为要安装的包)

# 阿里云
pip install xxxx -i http://mirrors.aliyun.com/pypi/simple/ --trust-host mirrors.aliyun.com
# or 中国科技大学
pip install xxxx -i https://pypi.mirrors.ustc.edu.cn/simple/ --trust-host pypi.mirrors.ustc.edu.cn
# or 豆瓣
pip install xxxx -i http://pypi.douban.com/simple/ --trust-host pypi.douban.com
# or 清华大学
pip install xxxx -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trust-host pypi.tuna.tsinghua.edu.cn

评论