YOLO必要

# 一、在conda新建python3.8的环境
conda create -n envir_name python=3.8 -y
# 二、安装pytorch 
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
# OpenCV
pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
# PyYAML模块
pip install pyyaml -i https://pypi.tuna.tsinghua.edu.cn/simple
# matplotlib
pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install polars -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install scipy -i https://pypi.tuna.tsinghua.edu.cn/simple

非必要

#安装labelimg
pip install labelImg -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
Logo

码道开发者社区,聚焦华为云码道 CodeArts 代码智能体,沉淀 Agent、Skill、鸿蒙开发实战内容,供开发者查阅资料、交流技术、分享工程实践

更多推荐