AttributeError: module ‘yaml‘ has no attribute ‘warning‘

代碼中有yaml.warnings({'YAMLLoadWarning': False}) 運行代碼的時候出現AttributeError: module ‘yaml’ has no attribute ‘warning’ 錯誤 解決方法:直接在你的編譯環境的目錄下進行安裝新的模塊 比如說我的解釋器爲下圖: file——setting,然後步驟如上圖 知道了解釋器的文件及之後,直接使用cmd命令行
相關文章
相關標籤/搜索