I would like to install both python 2.7 and python 3.5 on my Windows 10 PC. Both python executables use the same name
You don't need to rename anything for co-existence of different versions of Python.
The different versions of python are installed on different folders automatically.
When use the command prompt you can use the commands
py3 to refer to the different versions of python. The next works too:
This also works with
pip3 for install new packages.
For more details, you can read this article: Python Launcher for Windows.