ubuntu下安装python模块 pip intall xxx报错

报错内容大概如下:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f0fc68d6370>: Failed to establish a new connection: [Errno -3] 域名解析暂时失败')': /simple/torch/

解决:

(1)关闭翻Q的VPN;(2)检查安装模块对应的版本和python的版本是否对应

第一点是主要原因

相关推荐
HelloTonyGo11 分钟前
个人游戏笔记本免费“养龙虾”(Win10+WSL2+OpenClaw 部署与配置指南)
windows·ubuntu·wsl2·openclaw
敏编程32 分钟前
一天一个Python库:tomlkit - 轻松解析和操作TOML配置
python
2401_8796938737 分钟前
使用Python进行图像识别:CNN卷积神经网络实战
jvm·数据库·python
yunyun3212344 分钟前
机器学习模型部署:将模型转化为Web API
jvm·数据库·python
团子和二花1 小时前
openclaw平替之nanobot源码解析(七):Gateway与多渠道集成
python·gateway·agent·智能体·openclaw·nanobot
未知鱼1 小时前
Python安全开发之简易目录扫描器(含详细注释)
开发语言·python·安全
Be1k01 小时前
推荐一款语雀知识库批量导出工具
python·gui·工具·语雀·批量导出·原创
Sunshine for you2 小时前
如何用FastAPI构建高性能的现代API
jvm·数据库·python
阿贵---2 小时前
Python Web爬虫入门:使用Requests和BeautifulSoup
jvm·数据库·python
Red丶哞3 小时前
内网自建Postfix使用Python发送邮件
开发语言·python