前提:已经安装了acanoda
cuda11.6下载
直接搜索cuda11.6

acanoda操作
python版本3.9
conda create -n pytorch python=3.9
conda activate pytorch
安装Pytorch-gpu版本等包
要使用pip安装,cu116=cuda11.6版本
pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116