Every time I import py files to my main py file, it gives
no module named
error.
All are in the same folder.
I am working on spyder environment. Both my python and spyder are in the same path, too:
C:\ProgramData\Anaconda3
I think you have to add yourpath to $PYTHONPATH
or sys.path
. This might help How to fix "ImportError: No module named ..." error in Python?