当前位置:网站首页>【问题】使用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 #表示添加信任
边栏推荐
猜你喜欢
【常见 error】Vivado 综合出现中断、失败、“PID not specified”
Day2:面试必考题目
ideaIU-2020.1下载
【深度学习中的激活函数的整理与使用总结】
你把 vite打包 玩明白
Role usage in Ansible
[A summary of the sorting and use of activation functions in deep learning]
HCIP Fifteenth Day Notes (Three-layer Architecture of Enterprise Network, VLAN and VLAN Configuration)
输出一个整数的二进制形式
Nanoprobes金脂质偶联物的相关应用
随机推荐
图形学-粒子系统 (Particle System)
基于.NET 6 的开源访客管理系统
理解string类
QImageReader
函数在结构体中的应用练习
如何把MapGIS的区文件转为ArcGIS的SHAPE面文件
致一位湖南女孩
输出一个整数的二进制形式
LARS (Least Angle Regression)
【框架】idea找不到xxx依赖项怎么办
你把 vite打包 玩明白
Leetcode 448. Find All Numbers Disappeared in an Array to Find All Disappeared in an Array of Numbers (simple)
国产替代风潮下,电子元器件B2B商城系统如何助力企业突围市场竞争
Zhang Le: The Golden Triangle of R&D Efficiency and Practice in the Field of Demand and Agile Collaboration|Live Review
金立前高管团队再战手机市场,创立新品牌“FreeYond”
使用alarm函数实现sleep,使用alarm函数实现对阻塞操作设置超时
W11或W10系统如何进行休眠?
VMware 虚拟机如何连接网络「建议收藏」
With 1000 lines of code statistics after the xi 'an housing prices, I have a startling discovery...
北斗三号系统建成开通两周年:基础设施端核心技术已实现自主可控