SS928板子上使用Python运行yoloV5-解决pip安装包报错问题(3)

SS928板子上使用Python运行yoloV5-解决pip安装包报错问题(3) Maya 亮 2023-12-25 08:50:39 1559

原因分析

/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

虽然有告警,但是安装成功

声明:本文内容由易百纳平台入驻作者撰写,文章观点仅代表作者本人,不代表易百纳立场。如有内容侵权或者其他问题,请联系本站进行删除。
Maya 亮
红包 点赞 收藏 评论 打赏
评论
0个
内容存在敏感词
手气红包
    易百纳技术社区暂无数据
相关专栏
置顶时间设置
结束时间
删除原因
  • 广告/SPAM
  • 恶意灌水
  • 违规内容
  • 文不对题
  • 重复发帖
打赏作者
易百纳技术社区
Maya 亮
您的支持将鼓励我继续创作!
打赏金额:
¥1易百纳技术社区
¥5易百纳技术社区
¥10易百纳技术社区
¥50易百纳技术社区
¥100易百纳技术社区
支付方式:
微信支付
支付宝支付
易百纳技术社区微信支付
易百纳技术社区
打赏成功!

感谢您的打赏,如若您也想被打赏,可前往 发表专栏 哦~

举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

审核成功

发布时间设置
发布时间:
是否关联周任务-专栏模块

审核失败

失败原因
备注
拼手气红包 红包规则
祝福语
恭喜发财,大吉大利!
红包金额
红包最小金额不能低于5元
红包数量
红包数量范围10~50个
余额支付
当前余额:
可前往问答、专栏板块获取收益 去获取
取 消 确 定

小包子的红包

恭喜发财,大吉大利

已领取20/40,共1.6元 红包规则

    易百纳技术社区