Reputation: 3549
Does python know when it was installed? On windows
where python
tells me the path, but if i have several versions and environments is there a way to tell me all of them as well as their installation dates?
Upvotes: 1
Views: 339
Reputation: 98901
You can use PowerShell
to retrieve the python executable creation date, it should be the same as the installation date, i.e.:
To get the installation date:
$file = Get-Item (gcm python).Path
$file.CreationTime
#Saturday, May 23, 2015 09:44:06
To get the python version:
python --version
#Python 2.7.10
Upvotes: 2