See when packages were installed / updated using pip

后端 未结 7 1701
说谎
说谎 2020-12-13 06:32

I know how to see installed Python packages using pip, just use pip freeze. But is there any way to see the date and time when package is installed or updated w

7条回答
  •  情书的邮戳
    2020-12-13 06:50

    pip freeze gives you all the installed packages. Assuming you know the folder:

    time.ctime(os.path.getctime(file))

    should give you the creation time of a file, i.e. date of when the package has been installed or updated.

提交回复
热议问题