Python - ModuleNotFoundError: No module named
问题 I'm new in Python and I'm having the following error with this simple example: This is my project structure: python_project . ├── lib │ ├── __init__.py │ └── my_custom_lib.py └── src ├── __init__.py └── main.py And this is the error when I execute the src/main.py file: ☁ python_project python src/main.py Traceback (most recent call last): File "src/main.py", line 3, in <module> from lib import my_custom_lib ImportError: No module named lib If I move the main.py file to the root and then I