File tree Expand file tree Collapse file tree 2 files changed +27
-4
lines changed
Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ model_deploy.py \
194194
195195## 执行转换脚本
196196
197- 直接执行` chmod +x convert_yolov5_to_cvimodelsh && ./convert_yolov5_to_cvimodel.sh ` 等待转换完成。
197+ 直接执行` chmod +x convert_yolov5_to_cvimodel.sh && ./convert_yolov5_to_cvimodel.sh ` 等待转换完成。
198198
199199如果出错了,请仔细看上一步的说明,是不是参数有问题,或者输出层选择得不合理等。
200200
Original file line number Diff line number Diff line change @@ -28,13 +28,37 @@ import os
2828os.system(" pip install --upgrade 包名" )
2929```
3030
31-
32-
3331### 方法二: 终端使用 pip 命令安装
3432
3533使用[ Linux 基础] ( ./linux_basic.md ) 中介绍的终端使用方法,使用 ` pip install 包名 ` 安装你需要的包。
3634
35+ ## pip换源
36+
37+ 在使用 pip 下载 Python 软件包时,默认会从 [ PyPI] ( https://pypi.org/ ) 下载。PyPI 是 Python 官方的软件包储存库,对于中国用户来说下载速度会很慢。
38+
39+ 中国国内有许多 PyPI 的镜像源,从镜像源下载可以提升下载速度。
40+
41+ 在终端中输入以下命令,可以从清华源更新 pip :
42+
43+ ```
44+ python -m pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade pip
45+ ```
46+
47+ 用以下命令将下载源设为清华源:
3748
49+ ```
50+ pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
51+ ```
52+
53+ 恢复默认源:
54+
55+ ```
56+ pip config unset global.index-url
57+ ```
58+
59+ 参考:[ 清华大学开源软件镜像站 PyPI软件仓库] ( https://mirrors.tuna.tsinghua.edu.cn/help/pypi/ ) 。
60+
61+ 你也可以自己寻找其他好用的镜像源。
3862
3963## pip 无法直接安装的包
4064
@@ -46,4 +70,3 @@ os.system("pip install --upgrade 包名")
4670> 如果你通过方法二成功编译测试过了某个包并且觉得它十分有必要集成到系统中,欢迎通过[ issues] ( https://github.com/sipeed/maixpy/issues ) 提意见。
4771
4872
49-
You can’t perform that action at this time.
0 commit comments