技术专栏
SS928板子上使用Python运行yoloV5-解决pip安装包报错问题(3)
原因分析
/data/Mix210/apps/python3 # ./bin/python3 -m pip install requests -i https://mirrors.aliyun.com/pypi/simple --trust-host mirrors.aliyun.com
WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
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 0x7f7dd81310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f7dd81550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f7dd818d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f7dd81c10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f7dd15110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
ERROR: Could not find a version that satisfies the requirement requests (from versions: none)
ERROR: No matching distribution found for requests
这个原因是网络不通,如下:
/etc/init.d # ping www.baidu.com
ping: bad address 'www.baidu.com'
配置网络环境
https://www.ebaina.com/articles/140000017022
pip 安装测试
/data/Mix210/apps/python3 # ./bin/python3 -m pip install requests -i https://mirrors.aliyun.com/pypi/simple --t
rusted-host mirrors.aliyun.com
WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
/data/Mix210/apps/python3/lib/python3.7/site-packages/pip/_vendor/urllib3/connection.py:387: SystemTimeWarning: System time is way off (before 2022-01-01). This will probably lead to SSL verification errors
SystemTimeWarning,
Collecting requests
Downloading https://mirrors.aliyun.com/pypi/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 10.6 MB/s eta 0:00:00
Requirement already satisfied: charset-normalizer<4,>=2 in ./lib/python3.7/site-packages (from requests) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in ./lib/python3.7/site-packages (from requests) (3.6)
Requirement already satisfied: certifi>=2017.4.17 in ./lib/python3.7/site-packages (from requests) (2023.11.17)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./lib/python3.7/site-packages (from requests) (2.0.7)
Installing collected packages: requests
Successfully installed requests-2.31.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
/data/Mix210/apps/python3/lib/python3.7/site-packages/pip/_vendor/urllib3/connection.py:387: SystemTimeWarning: System time is way off (before 2022-01-01). This will probably lead to SSL verification errors
SystemTimeWarning,
[notice] A new release of pip is available: 23.0.1 -> 23.3.2
[notice] To update, run: /data/Mix210/apps/python3/bin/python3 -m pip install --upgrade pip
虽然有告警,但是安装成功
声明:本文内容由易百纳平台入驻作者撰写,文章观点仅代表作者本人,不代表易百纳立场。如有内容侵权或者其他问题,请联系本站进行删除。
红包
点赞
收藏
评论
打赏
- 分享
- 举报
评论
0个
手气红包
暂无数据相关专栏
-
浏览量:1071次2023-12-24 00:06:09
-
浏览量:1843次2023-12-16 22:32:09
-
浏览量:7229次2023-03-17 19:33:35
-
浏览量:1380次2025-02-05 14:33:55
-
浏览量:5064次2024-05-23 13:45:40
-
2024-02-02 14:41:10
-
浏览量:5803次2022-09-20 15:23:26
-
浏览量:4204次2022-11-22 09:58:36
-
浏览量:1221次2023-06-03 16:03:04
-
浏览量:2676次2024-02-19 15:29:34
-
浏览量:2187次2023-09-01 13:25:40
-
浏览量:2213次2023-10-28 16:08:09
-
浏览量:3902次2024-01-18 18:05:38
-
浏览量:1807次2023-07-20 11:05:58
-
浏览量:322次2025-09-06 16:56:00
-
浏览量:12734次2022-11-10 18:07:40
-
浏览量:4070次2024-01-17 17:09:14
-
浏览量:8532次2022-07-29 18:09:52
-
浏览量:3115次2024-02-19 15:26:47
置顶时间设置
结束时间
删除原因
-
广告/SPAM
-
恶意灌水
-
违规内容
-
文不对题
-
重复发帖
打赏作者
Maya 亮
您的支持将鼓励我继续创作!
打赏金额:
¥1
¥5
¥10
¥50
¥100
支付方式:
微信支付
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
审核成功
发布时间设置
发布时间:
请选择发布时间设置
是否关联周任务-专栏模块
审核失败
失败原因
请选择失败原因
备注
请输入备注

微信扫码分享
QQ好友