conda安装虚拟环境python版本不要过高
在yolov8文件夹中进入虚拟环境中
虚拟环境中安装:
安装pytorch:
conda install pytorch torchvision torchaudio cpuonly
pip3 install torch torchvision torchaudio
pip install -r requirements.txt
pip install ultralytics
pip install yolo
python setup.py install
pip install msvc-runtime
测试:
yolo predict model=yolov8s.pt source=ultralytics/assets/zidane.jpg save=true show=True