pip卸载PyYAML时报错:
ERROR: Cannot uninstall ‘PyYAML’. 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.
解决方案:
使用find找到依赖项(地址根据自己的安装情况改动)
find /home/ubuntu/miniconda3/envs/py37-cuda101 -name "*PyYAML*"
删除返回的相关文件
https://blog.csdn.net/dreambyday/article/details/122417899