我们在命令行安装包时,因为种种原因,会出现超时问题
此时是普通命令:pip install 包名
现在我们用镜像源,镜像源是一种很普便的方式了,只是有时候镜像源的格式大家会记不大熟悉,例如博主这种小白╮( ̄▽ ̄")╭
不说废话,2种镜像源格式奉上(豆瓣与清华http源):
1:pip install -i https://pypi.douban.com/simple/ 包名
2:pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple +包名
另附上:
#设置超时时间安装:
pip --default-timeout=100 install 包名
此时,就好啦