pip

【pip install】ERROR: Cannot uninstall ‘xx‘. It is a distutils installed project 的解决办法
今天在安装audtorch使用pip install audtorch进行安装时,报错:
ERROR: Cannot uninstall ‘packaging’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

img

解决
【万能语法】如果以后遇到ERROR: Cannot uninstall [pacakage]. It is a distutils installed project…类似错误,就可以先使用pip install --ignore-installed [package],再安装

pip install --ignore-installed packaging
posted @ 2023-02-07 10:10  寻梦99  阅读(38)  评论(0编辑  收藏  举报