Yolov8-ultralytics环境配置
通过conda安装
conda create -n Yolov8-Env python=3.10.6
conda activate Yolov8-Env
conda config --remove-key channels
conda install -c pytorch -c nvidia -c conda-forge pytorch torchvision pytorch-cuda=11.8 ultralytics # 失败报错
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia # 先安装pytorch #成功
conda install -c conda-forge ultralytics # 需要等比较长的时间
问题
失败报错,长期无响应。【猜测一下子没办法装这么多;conda包搜索能力欠缺】【conda安装的opencv包似乎有问题】
通过pip安装
conda create -n Yolov8-Env-Pip python=3.10.6
conda activate Yolov8-Env-Pip
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
pip install ultralytics