Pretrained embedding for OpenNMT-py : No module named 'onmt'

I want to use pretrained embeddings by using

but running this
python3 -emb_file_both “…/ko-ko-data/pt_embed/ko.vec” -dict_file “…/ko-ko-data/” -output_file “…/ko-ko-data/embeddings”

Traceback (most recent call last):
File “”, line 7, in
from onmt.utils.logging import init_logger, logger
ImportError: No module named ‘onmt’

Is there a solution?
I would appreciate for any suggestions,


Hello, @park! Probably, first you have to setup the system by running " install" in “OpenNMT-py” directory.

1 Like

Thanks alot. I solve the problem