'How can I set python3 as python in anaconda in Windows 10

In my anaconda environment in Windows 10,

python --version shows Python 3.7.6, and python3 --version shows Python 3.9.12

How can I set python to use Python 3.9.12 which is used by python3?

Because I use Windows, alias python=python3 command does not work.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source