Python Flask ImportError:ModuleNotFoundError:没有名为';mycode';

Python Flask ImportError:ModuleNotFoundError:没有名为';mycode';,python,flask,Python,Flask,您的\uuuu init\uuuuu.py文件需要放在名为mycode的文件夹中。如果上述条件已经成立,请尝试以下方法 将\uuuu init\uuuu.py重命名为mycode.py 您可以查看更多可能解决问题的解决方案。问题解决了吗? ImportError while loading conftest '/home/rohit/flask/src/tests/conftest.py'. conftest.py:6: in <module> from mycode imp

您的
\uuuu init\uuuuu.py
文件需要放在名为
mycode
的文件夹中。如果上述条件已经成立,请尝试以下方法

\uuuu init\uuuu.py
重命名为
mycode.py


您可以查看更多可能解决问题的解决方案。

问题解决了吗?
ImportError while loading conftest '/home/rohit/flask/src/tests/conftest.py'.
conftest.py:6: in <module>
    from mycode import create_app
E   ModuleNotFoundError: No module named 'mycode'
├── mycode
│   ├── auth
│   ├── auth.py
│   ├── db_insert.py
│   ├── db.py
│   ├── __init__.py
│   ├── __pycache__
│   │   ├── auth.cpython-37.pyc
│   │   ├── db.cpython-37.pyc
│   │   ├── db_insert.cpython-37.pyc
│   │   └── __init__.cpython-37.pyc
│   ├── README.md
│   ├── schema.sql
│   └── templates
│       ├── auth
│       │   ├── login.html
│       │   └── register.html
│       └── base.html
└── tests
    ├── conftest.py
    ├── data.sql
    ├── __pycache__
    │   └── conftest.cpython-37-pytest-5.4.1.pyc
    └── test_factory.py