当我尝试按docs.python.org中提到的import
ElementTree时,我收到以下错误消息。
我在这里做错了什么?
AttributeError: module 'copy' has no attribute 'deepcopy'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:/Pycharm/PycharmProjects/untitled/temp.py", line 1, in <module>
from xml.etree.ElementTree import ElementTree
File "C:\Users\chilukuri\AppData\Local\Programs\Python\Python36-32\lib\xml\etree\ElementTree.py", line 1654, in <module>
from _elementtree import *
SystemError: <built-in function __import__> returned a result with an error set
从这一行开始
File "C:\Users\chilukuri\AppData\Local\Programs\Python\Python36-32\lib\xml\etree\ElementTree.py", line 1654, in <module>
from _elementtree import
据我所知,从_elementtree
我试着在整个Python36-32目录中搜索这个* _elementtree *,但是找不到它,是不是这个原因?