-1

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

Vega
  • 27,856
  • 27
  • 95
  • 103
Sweta
  • 1
  • 1

1 Answers1

0

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?

Tr0jAn
  • 123
  • 3
  • 14