I am trying to run a very simple python project on VScode/Pycharm.
Directory Structure
PythonAnalyticalProject/
├── sales_analysis/
│ ├── __init__.py
│ ├── cli.py
│ ├── constants.py
│ ├── db.py
│ ├── sales_analysis.py (contains main)
├── images/
│ ├── image1.png/
│ └── image2.png/
├── setup.py
└── requirements.txt
I have installed the requirements.txt dependencies and also added the project directory in PYTHONPATH.
But I am still getting an error when I execute sales_analysis.py.
ModuleNotFoundError: No module named 'sales_analysis.cli'; 'sales_analysis' is not a package
This error originated on a line which had an import statement
from sales_analysis.cli import user_continue
How do I solve this error. I seem to have made all needed configurations, but the error still persists.