I'm getting a "ModuleNotFound" error for a user defined file that is very much in the same path

Viewed 14

So I'm trying to import modules from a user-created file called Models.py, and I've triple-checked that it's in the same folder as the file I'm running, but I keep getting this error:

runcell(0, 'C:/Users/Neha/Downloads/RIS-main/RIS-main/RIS.py')
Traceback (most recent call last):

  File ~\Downloads\RIS-main\RIS-main\RIS.py:5 in <module>
    from Models import GaussianPolicy, EnsembleCritic, LaplacePolicy, Encoder

ModuleNotFoundError: No module named 'Models'

I've tried phrasing it as Modules.py in the command but I get the same error. Does anyone know what's going on? Any help would be appreciated!

0 Answers
Related