安装d2l(pytorch) 📅 发布时间:2026/8/29 13:13:17 👁 浏览次数: 安装d2l pytorch 版本Anaconda3 python 3.9 pytorch 1.9/1.12d2l-0.17.6-py3-none-any.whl安装失败Anaconda3 配置github 或gitcode下载d2l-en-v0.17.6.zippipinstallpytz pipinstallalbumentations opencv_python_headless pipinstallwandb pipinstallruamel.yaml pipinstallnumba0.56pipinstallogb pykeops ray einops修改 setup.py和安装的版本一致jupyter1.0.0,numpy1.21.5,matplotlib3.5.1,requests2.27.1,pandas1.4.2管理员权限 运行Anaconda3安装pytorch 、 mmcvpytorch 1.9python 3.9cuda 11.1.1libtorch 1.9.1pipinstalltorch1.9.1cu111torchvision0.10.1cu111torchaudio0.9.1 numpy2-fhttps://download.pytorch.org/whl/torch_stable.html pipinstallmmcv-full1.4.8-fhttps://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html pipinstallmmdet2.23.0 pipinstallmmsegmentation0.29.1 pipinstallmmcls0.23.2 pipinstallmmdet3d0.18.1 pipinstallmmrotate0.2.0 pipinstalltorch-scatter torch-sparse torch-cluster torch-spline-conv-fhttps://pytorch-geometric.com/whl/torch-1.9.1cu111.html pipinstalltorchdiffeq torch-geometric python setup.pyinstallpytorch1.12python 3.10cuda 11.6.2libtorch 1.12.1pipinstalltorch1.12.1cu116torchvision0.13.1cu116torchaudio0.12.1 numpy2-fhttps://download.pytorch.org/whl/torch_stable.html pipinstallmmcv-full1.7.1-fhttps://download.openmmlab.com/mmcv/dist/cu116/torch1.12.0/index.html pipinstallmmdet2.28.2 pipinstallmmsegmentation0.30.0 pipinstallmmcls0.25.0 pipinstallmmdet3d1.0.0rc6 pipinstallmmrotate0.3.4 pipinstalltorch-scatter torch-sparse torch-cluster torch-spline-conv-fhttps://pytorch-geometric.com/whl/torch-1.12.1cu116.html pipinstalltorchdiffeq torch-geometric python setup.pyinstallpytorch2.7python 3.13cuda 12.6.3libtorch 2.7.1pipinstalltorch2.7.1torchvision0.22.1torchaudio2.7.1 --index-url https://download.pytorch.org/whl/cu126jupyter notebook运行时如果出现Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.Anaconda3\Library\bin\site-packages\torch\目录下都有 libiomp5md.dll删除Anaconda3\Library\bin\目录下的OSError: [WinError 1455]页面文件太小无法完成操作。修改pytorch所在盘的虚拟内存大小