[Python] Python - Accessing modules from other folders with python project

Discussão em 'Python' iniciado por Stack, Junho 5, 2025.

  1. Stack

    Stack Membro Participativo

    Hello I am getting the following error No module named 'backend' when trying to import from within python1.py python file

    I am trying to import as such:

    import sys
    from backend.utils import *


    Project folder is structured as follows:

    Project Folder
    ---backend
    ---folder_1
    ---python1.py
    ---utils.py

    Continue reading...

Compartilhe esta Página