This is a very subjective question in most cases, I’m not really sure if its even fit for SO.
Here are the different characteristics of each path:
C:\PythonXY:
- Requires administrator rights
- All users have access to it – better if you want only one install of a python version on your system
- More practical to write in command line (might be needed for multiple python installs, although using
venvsorconda envssolves this problem) Program Filesis the same, except that there are spaces in the path (probably a bad idea)
AppData:
- Doesn’t require administrator rights
- Only for one user – good if the other users don’t want/need it
- Might be painful to write in command line
I have admin rights and am the only user on my computer, so I chose the first option, but it really is case-dependent.
EDIT Please see the comments below for rectifications on paths.