今天執(zhí)行 pip install weditor 的時(shí)候,突然爆出超時(shí)錯(cuò)誤,如下:

image.png
解決辦法有兩種:
1. 更換國(guó)內(nèi)鏡像源安裝:
pip install weditor -i http://pypi.douban.com/simple --trusted-host=pypi.douban.com
國(guó)內(nèi)常用的鏡像源:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中國(guó)科技大學(xué) https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清華大學(xué) https://pypi.tuna.tsinghua.edu.cn/simple/
中國(guó)科學(xué)技術(shù)大學(xué) http://pypi.mirrors.ustc.edu.cn/simple/
2. 設(shè)置超時(shí)時(shí)間
pip --default-timeout=1000 install weditor