AttributeError: module 'yaml' has no attribute 'FullLoader'

网友投稿 2136 2022-08-22

AttributeError: module 'yaml' has no attribute 'FullLoader'

AttributeError: module 'yaml' has no attribute 'FullLoader'

今天在用yaml的时候出现了下面的错误:

---------------------------------------------------------------------------AttributeError Traceback (most recent call last) in 1 with open(config, 'r') as f:----> 2 params = yaml.load(f, Loader=yaml.FullLoader)AttributeError: module 'yaml' has no attribute 'FullLoader'

解决方法

pip install --ignore-installed PyYAML

参考文献

[1].AttributeError: 'module' object has no attribute 'FullLoader'. ​​Cannot uninstall 'PyYAML'.​

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:ubuntu18.04安装了anaconda的后,让.bashrc文件在终端自动生效
下一篇:Android通用标题栏组合控件(android 自定义标题栏)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~