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
2 Respostas
+ 2
I'm not familiar with PyCharm, but it might have to do with your current working directory. Refer to these posts => https://stackoverflow.com/questions/34304044/pycharm-current-working-directory // https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000782850-How-to-set-up-working-directory-in-PyCharm-and-package-import-
+ 1
Thanks @Anna, got some useful debugging there.