我是靠谱客的博主 害羞鱼,这篇文章主要介绍python 安装包时出现socket.timeout the read operation timed out,现在分享给大家,希望可以做个参考。

python pip 安装包下载过慢出现socket.timeout the read operation timed out

1.设置超时时间

pip --default-timeout=100 install -U rasa_core

2.换成国内镜像
    更换 pip 源自国内镜像,在 pip install 后面添加 -i https://pypi.tuna.tsinghua.edu.cn/simple   
    上面蓝色部分是镜像地址,网上可以查到,这里提供两个速度快的:

        豆瓣:http://pypi.douban.com/simple/ 
        清华:https://pypi.tuna.tsinghua.edu.cn/simple

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple rasa_core

最后

以上就是害羞鱼最近收集整理的关于python 安装包时出现socket.timeout the read operation timed out的全部内容,更多相关python内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(120)

评论列表共有 0 条评论

立即
投稿
返回
顶部