ModuleNotFoundError: no module named 'models' | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

ModuleNotFoundError: no module named 'models'

I have two code scripts: models and train. In the train.py I am trying to import functions and classes from models.py But when I write >>from models import Generator it shows the error. both the scripts are in the same folder. My OS is windows and using pycharm

5th May 2019, 3:47 PM
rb kdk
rb kdk - avatar
2 Answers
5th May 2019, 3:52 PM
Anna
Anna - avatar
+ 1
Thanks @Anna, got some useful debugging there.
5th May 2019, 4:20 PM
rb kdk
rb kdk - avatar