赞
踩
pip list --outdated --format=legacy
pip install --upgrade pytorch torchvision
conda config --add channels soumith
conda update pytorch torchvision
使用conda安装指定版本
# =后边是版本号
conda install pytorch=10.0 -c soumith
使用pip安装指定版本
pip3 install https://download.pytorch.org/whl/cu100/torch-1.1.0-cp37-cp37m-linux_x86_64.whl
pip3 install https://download.pytorch.org/whl/cu100/torchvision-0.3.0-cp37-cp37m-linux_x86_64.whl
conda uninstall pytorch
conda uninstall libtorch
pip uninstall torch
python
>>>import torch
>>>print(torch.__version__)
python
>>>import torch
>>>torch.version.cuda
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。