yolov5虚拟环境pytorch
时间: 2023-09-12 11:09:01 浏览: 133
要在yolov5虚拟环境中安装pytorch,首先需要进入Anaconda Prompt。可以通过打开Anaconda Prompt并激活yolov5虚拟环境来进行操作。你可以使用以下命令激活虚拟环境:
conda activate yolov5
然后,你可以使用以下命令在yolov5虚拟环境中安装pytorch和torchvision:
conda install pytorch torchvision torchaudio cudatoolkit=11.3
这样,你就成功在yolov5虚拟环境中安装了pytorch。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [YOLOV5环境torchvision和pytorch的版本不一致](https://blog.csdn.net/weixin_46406816/article/details/124045645)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文