python2.7 之无解的yaml版本问题

2023年1月8日11:25:27

报错:‘module’ object has no attribute 'FullLoader'

谷歌的答案:系统的3.11版本不支持FullLoader,需要升级5.3.1

1、

pip install -U PyYAML

 试了不行。。

2、pip install --ignore-installed PyYAML

这个方式会在系统中同时安装两个版本,需要手动删除pyyaml==3.11,删除yaml文件

  • 作者:小凡197
  • 原文链接:https://blog.csdn.net/u012706484/article/details/106622637
    更新时间:2023年1月8日11:25:27 ,共 189 字。