Change8
Error1 reports

Fix ModuleNotFoundError

in Mojo Language

Solution

ModuleNotFoundError in Mojo usually means the necessary module's path isn't in Mojo's module search paths. To fix it, ensure the module is installed correctly and explicitly add its parent directory to the `PYTHONPATH` environment variable or use `mojo add-package` to include the package if it's a shard. Verify the module name in your import statement matches the actual file name.

Related Issues

Real GitHub issues where developers encountered this error:

Timeline

First reported:Oct 18, 2025
Last reported:Oct 18, 2025

Need More Help?

View the full changelog and migration guides for Mojo Language

View Mojo Language Changelog