I usually install and use python from the official website python.org, not from the microsoft store.
The installer on the official website will also install "python launcher(py.exe, pyw.exe)".
Basically I am running the script with "py.exe" instead of "python.exe".
Then, for a virtual environment, use "python.exe".
(Thank you to the person who made it)