IT系技術ブログ

【python】pipでインストールした日付を確認する方法【pip-date】

環境

・Windows 11 Pro

・Chrome バージョン: 115.0.5790.99(Official Build) (64 ビット)

・Python 3.9.5 64-bit

・pip-date:pip-date-1.0.5

pip-dateのインストール~実行

pip-dateをインストール

1.python、pipの実行環境で「pip install pip-date」を実行

PS D:\> pip install pip-date
Collecting pip-date
  Downloading pip_date-1.0.5-py3-none-any.whl (32 kB)
Requirement already satisfied: lxml in c:\python\python39\lib\site-packages (from pip-date) (4.8.0)
Requirement already satisfied: requests in c:\python\python39\lib\site-packages (from pip-date) (2.28.0)
Requirement already satisfied: idna<4,>=2.5 in c:\python\python39\lib\site-packages (from requests->pip-date) (3.2)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\python\python39\lib\site-packages (from requests->pip-date) (1.26.9)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\python\python39\lib\site-packages (from requests->pip-date) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in c:\python\python39\lib\site-packages (from requests->pip-date) (2022.6.15)
Installing collected packages: pip-date
Successfully installed pip-date-1.0.5

pip-dateの実行パスを確認

1.「pip show」を実行

PS D:\> pip show pip-date
Name: pip-date
Version: 1.0.5
Summary: Show the installation/modification times of all your pip packages and other tools
Home-page: https://github.com/E3V3A/pip-date/
Author: E:V:A
Author-email: xdae3v3a@gmail.com
License: LICENSE.txt
Location: c:\python\python39\lib\site-packages
Requires: lxml, requests
Required-by:

2.「pip-date」がインストールされたフォルダを表示する

※上記1の実行結果の場合、「c:\python\python39\lib\site-packages」となっており、

 pip-dateの実行ファイルは「C:\Python\Python39\Scripts」に保存されている

pip-dateを実行

1.「pip-dateの実行パスを確認」で確認した結果より

「python C:\Python\Python39\Scripts\pip-date.py」と入力し実行する

2.pipでインストールされているライブラリの情報が一覧表示され、

PS D:\> python C:\Python\Python39\Scripts\pip-date.py

Using cTime for WindowsPE


Package                Installed (cTime)      LastModified (mTime)   Version            Inst     Prec   Type    Loc
-------------------------------------------------------------------------------------------------------------------
aiohttp                2021-06-25  16:54:54                          3.7.4.post0        pip             wheel   sys
altgraph               2022-05-11  21:53:51                          0.17.2             pip             wheel   sys
asgiref                2022-03-12  05:01:30                          3.5.0              pip             wheel   sys
webdriver-manager      2023-07-27  22:09:52                          4.0.0              pip             wheel   sys
yarl                   2021-06-25  16:54:53                          1.6.3              pip             wheel   sys
zope.interface         2022-02-23  22:39:32                          5.4.0              pip             wheel   sys
-------------------------------------------------------------------------------------------------------------------
  ▀ = ERROR (preventing package processing)
  ▀ = Using a Bad, Deprecated or Non-Standard installation Path
  ▀ = Possibly Multiple installations (differing file times)
  ▀ = Recently Changed / Installed (in last 7 days)
  ▀ = Non-PEM-compliant Version string (PEP-0440) | ~/.local install
  ▀ = A 'setuptools' dependency package
-------------------------------------------------------------------------------------------------------------------
Found 95 packages.

Done!
モバイルバージョンを終了