[英]how to solve AttributeError: module has no attribute python
[英]How to solve the "AttributeError: module 'xmltodict' has no attribute 'parse'".?
在 python 程序中,我導入了幾個模塊,我試圖運行預定義的 python 文件 xmltodict,其中定義了 'parse' 函數。 但它向我展示了“AttributeError: module 'xmltodict' has no attribute 'parse'”。
我已將 xmltodict.py 文件包含在我工作的 Jupyter 筆記本的同一工作目錄中。 但它仍然顯示我相同。
請幫我解決這個問題。
我在 AWS Lambda 函數上遇到了同樣的問題,我通過從根目錄中的主xmltodict 文件夾中提取所有內容來解決該問題。 嘗試一下,如果您的問題仍然存在,請在此處發布您的項目目錄。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.