出现socket.timeout: The read operation timed out 错误的时候,可能是pip源不稳定,可以用镜像源下载!
清华镜像源:https://pypi.tuna.tsinghua.edu.cn/simple
豆瓣镜像源:http://pypi.douban.com/simple/
比如,你要下载sklearn
模块,可以改为:
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple sklearn