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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章