ERROR: Cannot uninstall 'xxx'. It is a distutils installed project and thus we cannot accurately

╰+攻爆jí腚メ 2023-07-25 12:55 102阅读 0赞

今天安装 serial 时报错:

  1. ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we
  2. cannot accurately determine which files belong to it which would lead to
  3. only a partial uninstall .
  4. 错误:无法卸载“ PyYAML”。 这是一个distutils安装的项目,因此我们
  5. 无法准确确定哪些文件属于该文件,这将导致
  6. 仅部分卸载

我的环境:win10、py3.6

解决办法:

  1. 报错 Cannot uninstall 'abcd',那就 pip install --ignore-installed abcd

因为我报错 Cannot uninstall 'PyYAML',所以

  1. pip install --ignore-installed pyyaml
  2. #Successfully installed pyyaml-5.3.1
  3. '安装完成后,再下载自己想要下载的包'
  4. pip install serial
  5. #Successfully installed iso8601-0.1.12 serial-0.0.97

就成功解决了。

发表评论

表情:
评论列表 (有 0 条评论,102人围观)

还没有评论,来说两句吧...

相关阅读