查看Python包安装时间

查看python包的安装时间

import pkg_resources
import os
import time

for package in pkg_resources.working_set:
    print("%s: %s" % (package, time.ctime(os.path.getctime(package.location))))