1、使用conda卸载Pytorch conda uninstall pytorch conda uninstall libtorch 2、使用pip卸载Pytorch pip uninstall torch 如果当初是用conda install 命令安装的pytorch,则用第一种方法,如果是用pip install命令安装的,则用第二种方法。或者两种方法都试一下