Local files being imported as Modules

Been using anaconda for a bit and never ran into this issue. Basically, whenever I import a local file, anaconda believes it’s a Module and throws a ModuleNotFoundError since, of course, I don’t have it installed. I have tried updating anaconda and creating a new virtual environment but no dice.

Thanks in advance!

Hi! Welcome to the Community.

If the file is in the same directory it should usually work. Do you have an example of the failure you could share?

1 Like