evns: torch 1.13.1 python 3.7
1.更新torch ->失败
直接使用pip指令更新torch,显示satisfied。
pip install --upgrade pytorch
后发现2.0的torch需要3.8版本及以上的python,故更新python。
2.更新python ->conda指令成功
使用pip指令更新python失败,使用conda指令更新成功。(为什么)
conda upgrade pytorch
3.更新torch ->成功
更新python后,pip指令更新torch。
pip install --upgrade pytorch
输入指令查看pytorch版本
conda list | grep torch
结果如下