I changed the location and changed name of my flask folder, which contains a virtual envrionment.
flask run
Fatal error in launcher: Unable to create process using '"c:\previous\path\backend_flask\.venv\scripts\python.exe" "C:\current\path\flask_backend\.venv\Scripts\flask.exe" run': The system cannot find the file specified.
However,
python -m flask run
still works.
Here is my project structure. .venv
folder is a neighbor of app
folder.
├── app
│ ├── __init__.py
│ ├── database.py
│ ├── routes.py
│ └── templates
│ └── index.html
├── README.md
├── .gitignore
├── output.txt
└── main.py
How can I fix the error from the flask run
command?