Bench migrate-env error on mac

When I run Bench migrate-env the bench stops and doesn’t start at all,
also show this error:
myprojectdirectory//env/bin/python: Error while finding module specification for ‘frappe.utils.bench_helper’ (ModuleNotFoundError: No module named ‘frappe’)
, I cant use any bench site related command , can’t drop or use or run.

when i run bench migrate-env this is shown:
ERROR: File “setup.py” or “setup.cfg” not found. Directory cannot be installed in editable mode: /myprojectdirectory/frappe-bench/apps/frappe

(A “pyproject.toml” file was found, but editable mode currently requires a setuptools-based build.)

After Some troubleshooting In case Someone faced the same issue:
1- delete env directory from the frappe-bench directory
2- run: bench setup env
3- run: bench setup requirements
4- go to common_site_config.json and remove “maintenance mode”:1