简体   繁体   中英

No module named 'gluonts.trainer'

!pip install gluonts
!pip install atspy
!pip install gluonts
from gluonts.mx.trainer import Trainer
from mxnet import gluon
from gluonts.trainer import Trainer
from atspy import AutomatedModel

However, it gives me an error:

ModuleNotFoundError Traceback (most recent call last) in 4 from gluonts.mx.trainer import Trainer 5 from mxnet import gluon ----> 6 from gluonts.trainer import Trainer 7 from atspy import AutomatedModel

ModuleNotFoundError: No module named 'gluonts.trainer'

I have no ideas how to solve this. If anyone has any ideas

In the source code, I couldn't find gluonts.trainer either. Are you sure that you need line 6?

In my case, from gluonts.mx.trainer import Trainer was sufficient. (though I only needed to use gluonts once).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM