当前位置:网站首页>【问题】使用pip安装第三方库的时候遇到“timeout”的解决方法
【问题】使用pip安装第三方库的时候遇到“timeout”的解决方法
2022-08-03 14:06:00 【Jackilina_Stone】
使用pip安装第三方库的时候遇到“timeout”的解决方法
(1) 设置延长超时时间
pip --default-timeout=100 install -U 库名称
(2) 换源
pip install 库名 -i 镜像源地址
可用的不错的镜像源地址:
清华: https://pypi.tuna.tsinghua.edu.cn/simple
豆瓣: http://pypi.douban.com/simple/
阿里: http://mirrors.aliyun.com/pypi/simple/
中国科学技术大学: http://pypi.mirrors.ustc.edu.cn/simple/
(3) 二者同时使用
pip --default-timeout=100 install 库名称 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
说明:
-i https://pypi.doubanio.com/simple/ #表示使用豆瓣源
-trusted-host pypi.douban.com #表示添加信任
边栏推荐
猜你喜欢
随机推荐
Chrome browser corresponding driver_chrome mobile browser
How to connect a VMware virtual machine to the network "recommended collection"
DAY19(DAY20、DAY21拓展):SQL 注入
VLAN experiment
CVPR 2022 | Predicting Skeletons from Human Meshes, True Physiological Skeletons!
位级运算之提取位级表示的最高位
W11的右键如何改成和W10一样?(一行命令即可解决!)
The difference between servlet and jsp _ the difference between servlet and class
半导体制造业回流美国?宏碁创始人施振荣:违反垂直分工大趋势
系统学习Shell之正则表达式
leetcode 448. Find All Numbers Disappeared in an Array 找到所有数组中消失的数字(简单)
如何把MapGIS的区文件转为ArcGIS的SHAPE面文件
ITSM软件与工单系统的区别是什么?
《深度学习》-学习笔记-1-机器学习基础
Lecture 2 Software Life Cycle
[A summary of the sorting and use of activation functions in deep learning]
LARS (Least Angle Regression)
“杀猪盘”宰向环球影城
游戏版号“地下交易”,一个版号能卖上千万?
servlet与jsp区别_servlet和class的区别