Setting up dev environment for Jupyter Lab

Hi, I am using a windows machine and trying to set up the dev environment. I am stuck at the instructions to run pip install -e ".[dev,test]" and the following error: File "c:\users\justeen\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 177, in prepare_metadata_for_build_editable hook = backend.prepare_metadata_for_build_editable AttributeError: module 'hatchling.build' has no attribute 'prepare_metadata_for_build_editable'
python version 3.9
pip version: 22.2.2