pip--read time out
出现的原因
出现这种情况有可能是网速慢或者是被限制了。
针对read time out
解决方法:
1.增加等待时间
pip3 --default-timeout=6000 install tensorflow==1.15.0
加入 --defalut-timeout=6000的等待时间。
2.通过加入镜像网址来代替
pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com numpy
还有一种情况
在安装过程中出现以下问题,可能疑似缓存问题:
解决:
pip install [module] --no-cache-dir
sudo pip install --no-cache-dir flask
当然,要与等待时间结合,即:
pip3 --default-timeout=10000 install --no-cache-dir torch torchvision