如何将Python-3.9.21 torch-2.6.0+cpu 环境改为Python-3.9.21 torch-2.6.0+gpu
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
Python内容推荐
python3.6 pytorch-cpu-1.1.0和torchvision-cpu.zip
pytorch-cpu-1.1.0-py3.6_cpu_1.tar.bz2和torchvision-cpu-0.3.0-py36_cuNone_1.tar.bz2
torch-1.8.0+cpu-cp38-cp38-win_amd64.whl
适用无GPU+python3.8+windows 64,下载之后,直接用pip安装。安装完成后,再运行一下pip install torch==1.8.0+cpu torchvision==0.9.0+cpu torchaudio===0.8.0 -f https://download.pytorch.org/whl/torch_stable.html,就可以自动下载torchvision和torchaudio。
anaconda(Spyder)_tensorflow_cpu/gpu安装配置
总结出来的整套配置anaconda(Spyder)+tensorflow+CPU/GPU的安装配置;以及踩过的各种坑及解决方法;良心总结
Linux系统安装pytorch和torchvision:torch1.8.0+torchvision0.9.0
设置了0积分,方便大家下载,安装教程:http://t.csdn.cn/q4eqx
torch_sparse-0.6.18+pt21cpu-cp310-cp310-win_amd64.whl.zip
需要配和指定版本torch-2.1.0+cpu使用,请在安装该模块前提前安装官方命令安装torch-2.1.0+cpu
torch-1.6.0+cpu-cp37-cp37m-win_amd64.zip
pyTorch安装包,用于pyTorch的离线安装,为pyTorch1.6.0版本,对应python为3.7,对应系统为window64位,无cuda加速
torch_sparse-0.6.18+pt21cpu-cp39-cp39-win_amd64.whl.zip
需要配和指定版本torch-2.1.0+cpu使用,请在安装该模块前提前安装官方命令安装torch-2.1.0+cpu
torch.cuda.is_available()返回False解决方案
在配置完环境以后运行程序,程序正常运行但是GPU没有任务,此时判断程序没有在GPU上运行。调试步骤: 先查看cuda安装有没有问题:nvcc -V 可以看到cuda驱动等安装没有问题。 进程序去看.cuda()或者.todevice之类代码,看程序确实放在GPU上了,故排除 但是在查看代码是看到这里是一个and,参数args.no_cuda是设置的Flase,所以问题因为在torch.cuda.is_available(),没有获得cuda加速。 查看深度学习环境搭建torch.cuda.is_available()这里返回了
torch_sparse-0.6.18+pt21cpu-cp311-cp311-win_amd64.whl.zip
需要配和指定版本torch-2.1.0+cpu使用,请在安装该模块前提前安装官方命令安装torch-2.1.0+cpu
torch_cluster-1.6.3+pt21cpu-cp39-cp39-win_amd64.whl.zip
需要配和指定版本torch-2.1.0+cpu使用,请在安装该模块前提前安装官方命令安装torch-2.1.0+cpu
torch_cluster-1.6.3+pt21cpu-cp310-cp310-linux_x86_64.whl.zip
需要配和指定版本torch-2.1.0+cpu使用,请在安装该模块前提前安装官方命令安装torch-2.1.0+cpu
torch_sparse-0.6.18+pt21cpu-cp311-cp311-linux_x86_64.whl.zip
需要配和指定版本torch-2.1.0+cpu使用,请在安装该模块前提前安装官方命令安装torch-2.1.0+cpu
torch_scatter-2.1.2+pt21cpu-cp311-cp311-win_amd64.whl.zip
需要配和指定版本torch-2.1.0+cpu使用,请在安装该模块前提前安装官方命令安装torch-2.1.0+cpu
torch_cluster-1.6.0+pt113cpu-cp39-cp39-win_amd64.whl.zip
需要配和指定版本torch-1.13.0+cpu使用,请在安装该模块前提前安装官方命令安装torch-1.13.0+cpu
torch_sparse-0.6.18+pt21cpu-cp38-cp38-linux_x86_64.whl.zip
需要配和指定版本torch-2.1.0+cpu使用,请在安装该模块前提前安装官方命令安装torch-2.1.0+cpu
torch_scatter-2.1.2+pt21cpu-cp38-cp38-linux_x86_64.whl.zip
需要配和指定版本torch-2.1.0+cpu使用,请在安装该模块前提前安装官方命令安装torch-2.1.0+cpu
torch_cluster-1.6.1+pt20cpu-cp39-cp39-win_amd64whl.zip
需要配和指定版本torch-2.0.1+cpu使用,请在安装该模块前提前安装官方命令安装torch-2.0.1+cpu
torch_cluster-1.6.3+pt21cpu-cp310-cp310-win_amd64.whl.zip
需要配和指定版本torch-2.1.0+cpu使用,请在安装该模块前提前安装官方命令安装torch-2.1.0+cpu
torch_cluster-1.6.3+pt21cpu-cp39-cp39-linux_x86_64.whl.zip
需要配和指定版本torch-2.1.0+cpu使用,请在安装该模块前提前安装官方命令安装torch-2.1.0+cpu
torch-1.5.0 torchvision-0.5.0(cpu-cp3.8).zip
由于下载很慢,镜像暂时也不能用,这里提供python的torch-1.5.0和torchvision-0.5.0的cpu版本。
最新推荐



