2

I'm trying to use the whoosh python library.

I added it to my system via pip, and can see it in my python dist-packages folder, which is on the path.

in my code I have:

from whoosh.fields import Schema, TEXT

schema = Schema(title=TEXT, content=TEXT)

As per the whoosh documentation, but this throws "importerror: no module named fields"

What am I doing wrong?

(I'm running python 2.7)

S..
  • 5,511
  • 2
  • 36
  • 43

0 Answers0