技术专栏
SS928板子上使用Python运行yoloV5-解决pip不能使用的问题(2)
1. 存在的问题
虽然现在能运行python,但是并没有pip模块,如下:
/data/Mix210/mix210-lib # ./bin/python3 Python 3.7.6 (default, Dec 3 2023, 20:03:16) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >> exit() /data/Mix210/mix210-lib # ./bin/python3 -m pip /data/Mix210/mix210-lib/bin/python3: No module named pip
原因应该是交叉编译过程中出现的问题,具体原因待查
2. 解决方案
我的解决方案是在一台aarch64的ubuntu18.4机器上编译好python,然后再上传到开发板上运行
- 下载 编译好的百度云-python3.7
- 上传到开发板之后解压
- 运行python
/data/Mix210/apps/python3 # ./bin/python3 -m pip
Usage:
/data/Mix210/apps/python3/bin/python3 -m pip <command> [options]
Commands:
install Install packages.
download Download packages.
uninstall Uninstall packages.
freeze Output installed packages in requirements format.
inspect Inspect the python environment.
list List installed packages.
show Show information about installed packages.
check Verify installed packages have compatible dependencies.
config Manage local and global configuration.
search Search PyPI for packages.
cache Inspect and manage pip's wheel cache.
index Inspect information available from package indexes.
wheel Build wheels from your requirements.
hash Compute hashes of package archives.
3. 存在的问题
使用pip安装包时报错
/data/Mix210/apps/python3 # ./bin/python3 -m pip install requests 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
待处理…
声明:本文内容由易百纳平台入驻作者撰写,文章观点仅代表作者本人,不代表易百纳立场。如有内容侵权或者其他问题,请联系本站进行删除。
红包
点赞
收藏
评论
打赏
- 分享
- 举报
评论
0个
手气红包
暂无数据
相关专栏
-
2023-12-24 14:43:57
-
浏览量:1005次2023-12-16 22:32:09
-
浏览量:2455次2024-05-23 13:45:40
-
浏览量:5973次2023-03-17 19:33:35
-
浏览量:1069次2023-06-02 17:42:09
-
浏览量:596次2023-06-03 16:03:04
-
2024-02-02 14:41:10
-
浏览量:7854次2022-07-29 18:09:52
-
浏览量:4833次2022-09-20 15:23:26
-
浏览量:1292次2023-07-20 11:05:58
-
浏览量:1261次2023-09-01 13:25:40
-
浏览量:811次2023-07-05 10:12:20
-
浏览量:3789次2024-05-28 16:26:51
-
浏览量:1592次2024-01-18 18:05:38
-
浏览量:638次2023-12-18 18:31:22
-
浏览量:1230次2023-10-28 16:08:09
-
浏览量:237次2024-09-13 17:34:13
-
浏览量:3873次2023-04-12 17:43:32
-
浏览量:972次2024-02-19 15:29:34
置顶时间设置
结束时间
删除原因
-
广告/SPAM
-
恶意灌水
-
违规内容
-
文不对题
-
重复发帖
打赏作者
Maya 亮
您的支持将鼓励我继续创作!
打赏金额:
¥1
¥5
¥10
¥50
¥100
支付方式:
微信支付
打赏成功!
感谢您的打赏,如若您也想被打赏,可前往 发表专栏 哦~
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
审核成功
发布时间设置
发布时间:
请选择发布时间设置
是否关联周任务-专栏模块
审核失败
失败原因
请选择失败原因
备注
请输入备注