一般在使用 pip 安裝 python 相關(guān)的包的時(shí)候,可能會(huì)由于網(wǎng)絡(luò)問題失敗
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
可以采用國(guó)內(nèi)鏡像進(jìn)行下載安裝,復(fù)制下面代碼重新進(jìn)行下載安裝:
pip install -r requirements.txt -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
安裝成功:文章來源:http://www.zghlxwxcb.cn/news/detail-608082.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-608082.html
到了這里,關(guān)于【問題記錄】pip install -r requirements.txt 安裝失敗的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!