ModuleNotFoundError: No Module Named '…' [Python]

后端 未结 2 1273
傲寒
傲寒 2021-01-27 10:27

I have only written stand alone script before in Python. Now I am trying to write an app which can transform and migrate data between two databases. But when I am trying to crea

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-27 10:36

    What you need to do is put main.py hand over your other scripts.

    Project
         - PQF
            - db
                - __init__.py
                - DataSource.py
                - RecordSet.py
            - main.py
            - __init__.py
    

    In your main.py, you now make your imports

提交回复
热议问题