5
我在Eclipse上与Pydev有爱恨关系。由于某种原因,它现在告诉我,它有一个未解决的代码导入:未解析的导入csv Pydev Eclipse
import csv
Traceback (most recent call last):
File "/Users/peterstannett/Documents/Programming/python/eclipse/workspace/myFirstPydev/csv.py", line 1, in <module>
import csv
File "/Users/peterstannett/Documents/Programming/python/eclipse/workspace/myFirstPydev/csv.py", line 3, in <module>
cr = csv.reader(f)
AttributeError: 'module' object has no attribute 'reader'
它几天前工作正常,我敢肯定!
所以我开始看解释器和csv.py文件的路径,我可以在System PYTHONPATH中看到它具有/lib/python2.7,其中csv.py文件仍然保留我仍然遇到错误。
会有人请帮我解决这个,因为它是最令人沮丧的!
感谢
好的。我会尝试!非常感谢。 – 2012-01-07 13:20:19
现货谢谢! – 2012-01-07 14:21:55