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

12次阅读
没有评论

报错:‘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文件

正文完
 0