In some code I have been writing, I import a personal module (from the directory I'm in). When I use Spyder IDE, it works fine. However, if I directly use the interpreter (For example: in terminal, writing $python file.py
), I get an error saying that the module does not exist.
FYI: The personal module is in .pyc format
Whats going wrong?