Q:

Python 3 Importing Functions

I have imported functions before successfully, but the following has left me confused.  Maybe, I just don't know enough about importing in python (I have tested the following principle on my own machine (Mac) and found that it works.  I created fome functions with nothing but print statements and called them exactly the same way.). 
I am running a script (train.py) that import functions from a file in the /src/models/models.py.  Using from  src.models.models import * /src and train.py are in the same directory. 
However, everytime I run python train.py I get ModuleNotFoundError: No module named 'src'. 
(source of the script github) https://github.com/aildnont/covid-cxr/blob/master/src/train.py
Same directory hierarchy and syntax works on my own computer (again I used some simple functions with print statements).  I am running train.py on a linux remote, using Python 3 on both machines.  Any idea?  Thanks! 

A:

Use relative imports:
from models.models import *

