开发者

Having Problems with importing xlwt?

I am using Eclipse with the PyDev plugin. I am using xlwt which is f开发者_Go百科or writing to an excel sheet. I have the xlwt library in my src file. I have another python file called gene_sorter.py where i try to import xlwt. using

import xlwt

I keep gettting back this error:

 File "C:\Documents and Settings\Ben Fossen\Pythonworkspace\MTBgenes\src\gene_sorter.py", line 1, in <module>
from xlwt import *

File "C:\Documents and Settings\Ben Fossen\Pythonworkspace\MTBgenes\src\xlwt\__init__.py", line 10, in <module>
from Workbook import Workbook
ImportError: No module named Workbook

I am new to using PyDev and eclipse so mabye I am making a simple mistake. I can't seem to see what I am doing wrong. I am using a new enough version of python so that shouldn't be a problem. Has anyone else had this problem it seems very strange?


"New enough version of Python" could well be "too new"; please edit your question to show the actual version number. In future, don't be coy; save the time and energy of everybody (including yourself) by including such essential information in your question.

If you are trying to run it under Python 3.1:

  • Don't bother; it's not supported (yet).
  • Please say where you got the notion that it was supported on 3.X, so that it can be corrected.

Otherwise:

  • Any particular reason why you wouldn't just run the Windows installer and install it in the default directory?
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜