can not import the module deepcopy [closed]
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
开发者_JS百科Closed 8 years ago.
Improve this questioni've ran into this wierd error since few days where most of the applications/frameworks/modules will refuse to run , because of of the unavailability of the module deepcopy i can't understand why is that so ?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.6/django/http/__init__.py", line 13, in <module>
from django.utils.datastructures import MultiValueDict, ImmutableList
File "/usr/lib/pymodules/python2.6/django/utils/datastructures.py", line 3, in <module>
from django.utils.copycompat import deepcopy
ImportError: cannot import name deepcopy
why is that so ? and how it can be fixed ?
seems like i had another copy.py file in my path that was confusing python .removed it and it worked like a charm .
If think you want to use:
from copy import deepcopy
I can't import it either. I think it has been removed from Django.
精彩评论