簡體   English   中英

我在調試代碼時得到結果,但是當我使用Eclipse IDE在python中運行代碼時看到錯誤

[英]I am getting result while debug the code but I see error when I run the code in python using eclipse IDE

運行代碼時遇到錯誤。 如果我調試代碼,則看不到任何錯誤,這表明結果很好。

我不知道確切的問題。 運行代碼時,我看到以下錯誤。 但是調試時錯誤不會出現

from _elementtree import *
AttributeError: module 'copy' has no attribute 'deepcopy'

關於這個問題有什么想法嗎?

您可以發布更多代碼嗎? 您正在使用的模塊可能未正確安裝,或者您在代碼中引用了未導入的內容。

我有程序包復制和復制模塊,並且正在使用ElementTree。 因此,元素樹正在尋找復制模塊,所以我遇到了這個問題。 重命名那些程序包和模塊后,問題解決了

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM