当前位置: 首页 > 工具软件 > PyYAML > 使用案例 >

卸载PyYAML

秦鹏飞
2023-12-01

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.

解决方案:

  1. 使用find找到依赖项(地址根据自己的安装情况改动)

    find /home/ubuntu/miniconda3/envs/py37-cuda101 -name "*PyYAML*"
    
  2. 删除返回的相关文件

https://blog.csdn.net/dreambyday/article/details/122417899

 类似资料: