ImportError: No module named torchtext.data


(Steveyang687) #1

Working on the speech2text quickstart, I have installed pytorch for python2.7
import pytorch works, however in the preprocess step , it occurs:


Traceback (most recent call last):
File “/home/steve/OpenNMT-py/onmt/io/IO.py”, line 7, in
import torchtext.data
ImportError: No module named torchtext.data

what shoulde i do??


(david levinthal) #2

sudo pip install torchtext