今天執(zhí)行 pip install weditor
的時候掷伙,突然爆出超時錯誤延欠,如下:
解決辦法有兩種:
1. 更換國內(nèi)鏡像源安裝:
pip install weditor -i http://pypi.douban.com/simple --trusted-host=pypi.douban.com
國內(nèi)常用的鏡像源:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清華大學 https://pypi.tuna.tsinghua.edu.cn/simple/
中國科學技術(shù)大學 http://pypi.mirrors.ustc.edu.cn/simple/
2. 設(shè)置超時時間
pip --default-timeout=1000 install weditor