日常查看Python库的本地安装信息及pip库的使用方法(补tensorflow2.3.0所有依赖whl)
Posted 囚生CY
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了日常查看Python库的本地安装信息及pip库的使用方法(补tensorflow2.3.0所有依赖whl)相关的知识,希望对你有一定的参考价值。
序言
需求源于想要对每次执行pip install
和conda install
命令来安装Python库做个日志记录, 并且想要对Anaconda根目录下的生成文件情况做个记录;
原因是最近发现很多Python库的更新太频繁, 前几天刚装的torchvision
就出了0.8.0
版本; 而且一个库还会有许多不同版本, 就dgl
库(一个绘图库, 可以对知识图谱以及各种图神经网络进行可视化)而言, 目前除了一个非CUDA版本的dgl
库, 其他的CUDA版本如dgl-cu100
, dgl-cu101
, dgl-cu102
, dgl-cu90
, dgl-cu92
就有五个对应不同CUDA版本的dgl
库, 之后CUDA版本更新肯定会变得更多, 虽然在安装时需要指定pip install dgl-cuXXX
, 然而调用起来都是一样的import dgl
, 这实在是乱套了; 不管是以后升级更新, 还是卸载非CUDA版本安装新的CUDA版本的库, 虽然使用pip install --upgrade
和pip uninstall
一般都能顺利完成, 但是如果能做个日志记录下每次安装的库总归是好的, 万一以后安装失败也有据可考;
这边顺手提供一些比较快的镜像库:
torch
与torchvision
所有版本的wheel安装包官方镜像库: https://download.pytorch.org/whl/torch_stable.html- pip所有的wheel安装库国内镜像(下载速度很快, 安装包非常全, 但是没有做分页致使镜像页加载很慢):
- 这六个国内镜像库速度确实很快, 但是问题时它们都没有做分页, 所以点进去一个页面上有几十万个库链接, 一行只有一个, 所以加载特别慢, 找到自己要下载的库很费时间, 一个办法是写个爬虫去访问这个镜像URL, 响应是非常快的, 然后找到自己库的URL点进去就很快了;
事实上E:\\Anaconda3\\Lib\\site-packages
下已经包含了相当完善的库安装信息;
关于查看每个安装包的安装信息, 可以查看
E:\\Anaconda3\\Lib\\site-packages
目录下命名中带有dist-info的文件夹里的信息:
- direct_url.json: 如果有该文件, 则其中包含了安装包的位置(本地或线上);
- 一般来说如果是用
conda
命令安装的库, 安装包的位置是一个无效的本地路径; - 如果时
pip
安装的离线wheel安装包, 则会记录当时wheel安装包的本地路径;
- 一般来说如果是用
- INSTALLER: 记录了安装的方法, 一般为pip或conda;
- METADATA: 记录了该库的元信息, 如库版本, 以及一些可能的说明事项, 起到README的功能;
- RECORD: 记录了该库在安装时所有生成文件的路径, 很可能在执行
pip uninstall
命令时就是根据这个RECORD进行文件的删除;- 查看
E:\\Anaconda3\\Lib\\site-packages\\torch-1.6.0.dist-info\\RECORD
, 发现:- 安装
torch
时还安装了caffe2
; - 并向
E:\\Anaconda3\\Scripts
目录下生成了两个可执行应用程序:convert-caffe2-to-onnx.exe
convert-onnx-to-caffe2.exe
;
- 安装
- 查看
E:\\Anaconda3\\Lib\\site-packages\\opencv_python-4.4.0.46.dist-info\\RECORD
, 发现:Python
中安装opencv
库时, 本质上是在安装cv2
库;
- 查看
- top_level.txt: 记录了安装该库时在
E:\\Anaconda3\\Lib\\site-packages
下所新建的目录, 如上面提到的torch
在top_level.txt中记录了torch和caffe2,opencv
则在top_level.txt中记录了cv2; - 其余如LICENSE, REQUESTED, WHEEL等文件没有包含很重要的信息, 略过;
注意到pip
库提供了调用这些信息的接口, 方法如下
from pip._internal.utils.misc import get_installed_distributions
for package in get_installed_distributions():
print(package)
for line in package._get_metadata('RECORD'):
print(' - '.format(line))
输出结果:
zipp 3.4.0
- __pycache__/zipp.cpython-38.pyc,,
- zipp-3.4.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
- zipp-3.4.0.dist-info/LICENSE,sha256=2z8CRrH5J48VhFuZ_sR4uLUG63ZIeZNyL4xuJUKF-vg,1050
- zipp-3.4.0.dist-info/METADATA,sha256=noSfks-ReGCmOSTxll7TELBJy0P_yAvVLa0FCFyhMeM,2134
- zipp-3.4.0.dist-info/RECORD,,
- zipp-3.4.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
- zipp-3.4.0.dist-info/WHEEL,sha256=EVRjI69F5qVjm_YgqcTXPnTAv3BfSUr0WVAHuSP3Xoo,92
- zipp-3.4.0.dist-info/direct_url.json,sha256=iCXL0VBE1-8g3pxVtHjuR5iCqnBPkwsB2QYNQrLezZE,77
- zipp-3.4.0.dist-info/top_level.txt,sha256=iAbdoSHfaGqBfVb2XuR9JqSQHCoOsOtG6y9C_LSpqFw,5
- zipp.py,sha256=wMSoYxAIPgYnqJAW0JcAl5sWaIcFc5xk3dNjf6ElGgU,8089
zict 0.1.3
xlwt 1.3.0
xlwings 0.11.8
XlsxWriter 1.1.0
- ../../Scripts/vba_extract.py,sha256=l4xfS_QQ48Gk0eWKCoCLnLYUlVOkCBcYZqD0BiQklBA,1943
- XlsxWriter-1.1.0.dist-info/METADATA,sha256=K93U4KV4-I12RTmRFnbct55TMPHjMT-CuD1DrRA4o9M,2562
- XlsxWriter-1.1.0.dist-info/RECORD,,
- XlsxWriter-1.1.0.dist-info/WHEEL,sha256=CG516Me1TEyQqkQMqQpnDadrWi7ujPk88poSAu3OliQ,116
- XlsxWriter-1.1.0.dist-info/top_level.txt,sha256=xFEUcpcY7QzAr_-ztkXebEt1FZCxpuCbmyCsBaevhRk,11
- xlsxwriter/__init__.py,sha256=12nsSkasIrRdZ5ONbh4WqONjKbzDClN3TDtsMOFZ0Lo,79
- xlsxwriter/app.py,sha256=cGxMrPn9MSjhhsl2aEE02-cMtFwyXailrerPTreBX1s,5739
...
...
...
...
目录
1 pip list 常规记录
执行pip list
命令可以查看到本机中使用pip
指令安装的所有库, 笔者发现其实使用conda install
安装的库也会被列进来, 但是pip list
并不能给到每个库的具体安装时间; 下面的代码给出了一种利用序言中提到的top_level.txt文件, 来列出pip list
中所有库安装时间的信息(其中时间是该库最近一次被更新的时间):
# -*- coding: UTF-8 -*-
# @author: caoyang
# @email: caoyang@163.sufe.edu.cn
import os
from datetime import datetime
from pip._internal.utils.misc import get_installed_distributions
packages = []
for package in get_installed_distributions():
package_name_version = str(package)
try:
module_dir = next(package._get_metadata('top_level.txt'))
package_location = os.path.join(package.location, module_dir)
os.stat(package_location)
except (StopIteration, OSError):
try:
package_location = os.path.join(package.location, package.key)
os.stat(package_location)
except:
package_location = package.location
modification_time = os.path.getctime(package_location)
modification_time = datetime.fromtimestamp(modification_time)
packages.append([
modification_time,
package_name_version
])
print('|Time|Package|')
print('|----|----|')
for modification_time, package_name_version in sorted(packages):
print("|||".format(modification_time, package_name_version))
注意pip
升级到20.x.x
版本(大概…)后get_installed_distributions
函数时被放到了pip._internal.utils.misc
模块下, 否则直接调用pip.get_installed_distributions
即可;
执行结果如下所示:
这是按照时间顺序列出地, 其实从时间可以很明显地看出, 从pip
库往上都是安装Anaconda
时顺带安装地库, 而后面的一些库就是笔者手动安装的包, 当然有的包可能并没有专门手动安装, 而是在安装其他包时由于依赖关系而绑定安装得到的; 还有一些未知的可能是PyCharm偷偷给装上的, 因为之前没有做日志, 可以手动把每个包安装的原因和方式记录在后面:
Time | Package | Note |
---|---|---|
2020-11-03 14:30:07.677642 | pip 20.2.4 | |
2020-11-03 14:43:00.483601 | selenium 3.141.0 | pip install selenium ; |
2020-11-03 15:31:07.884418 | opencv-python 4.4.0.46 | pip install opencv ; |
2020-11-15 13:27:43.735452 | conda-package-handling 1.7.2 | 与安装torch 相关; |
2020-11-15 13:27:49.879591 | torch 1.6.0 | conda install torch ; |
2020-11-16 18:07:10.186186 | pyreadline 2.1 | 未知; |
2020-11-16 18:07:10.232195 | pyrsistent 0.17.3 | 未知; |
2020-11-16 18:07:11.093984 | fsspec 0.8.3 | 未知; |
2020-11-16 18:07:11.112187 | joblib 0.17.0 | 未知; |
2020-11-16 18:07:11.201223 | json5 0.9.5 | 未知; |
2020-11-16 18:07:11.207223 | mock 4.0.2 | 未知; |
2020-11-16 18:07:11.212224 | libarchive-c 2.9 | 未知; |
2020-11-16 18:07:11.219226 | soupsieve 2.0.1 | 未知; |
2020-11-16 18:07:11.844612 | importlib-metadata 2.0.0 | 未知; |
2020-11-16 18:07:11.857615 | jupyterlab-server 1.0.0 | 未知; |
2020-11-16 18:07:13.768216 | tensorly 0.5.0 | GitHub@RE2RNN 项目代码request, conda install tensorly ; |
2020-11-16 18:12:28.232559 | antlr4-python3-runtime 4.8 | 未知; |
2020-11-16 18:12:28.546880 | automaton-tools 0.1.8 | GitHub@RE2RNN 项目代码request, 这个是装错库了, 应该是要安装automata-tools 的; pip install automata ; |
2020-11-16 18:27:40.146158 | pydash 4.9.0 | GitHub@RE2RNN 项目代码request; |
2020-11-16 18:31:36.487373 | automata-tools 2.0.1 | GitHub@RE2RNN 项目代码request, 有穷状态自动机相关操作库; pip install automata ; |
2020-11-19 15:23:54.801501 | jupyter-contrib-core 0.3.3 | 可能与jupyter-nbextensions-configurator 安装相关; |
2020-11-19 15:23:54.801501 | jupyter-highlight-selected-word 0.2.0 | 可能与jupyter-nbextensions-configurator 安装相关; |
2020-11-19 15:23:54.812136 | jupyter-latex-envs 1.4.6 | 可能与jupyter-nbextensions-configurator 安装相关; |
2020-11-19 15:23:54.844033 | jupyter-nbextensions-configurator 0.4.1 | jupyter 的目录插件: pip install jupyter_contrib_nbextensions , 周围相关的几个jupyter包似乎都是很早就存在的, 更新日期在附近可能都是跟该插件的安装有关; |
2020-11-19 15:23:54.865447 | jupyter-contrib-nbextensions 0.5.1 | 可能与jupyter-nbextensions-configurator 安装相关; |
2020-11-26 10:41:46.104553 | torchvision 0.7.0 | 发现之前安装torch 时没有绑定安装torchvision , 在https://download.pytorch.org/whl/torch_stable.html 下载的whl文件手动pip 安装的; |
2020-11-26 10:41:47.136441 | future 0.18.2 | 与torchvision 安装相关; |
2020-11-30 12:44:06.155658 | dgl 0.5.2 | pip install dgl-0.5.2-cp37-cp37m-win_amd64.whl ; |
因为该脚本的输出是按照时间顺序输出的, 并且是最近修改的时间, 所以可以按日做个增量日志备份, 便于以后出问题查找, 再不济也是记录一下到底是为什么装了这个库, 以后看到至少能明明白白…
这玩意儿看起来似乎没有太大用处, 主要笔者现在强迫症晚期, 笔记本里装了什么东西都一定要搞得明明白白, 绝不允许一些莫名其妙的垃圾跑进了圣洁的固态硬盘上…
3 conda install 与 pip install 命令执行记录
# TODO
计划将每次执行的pip install
和conda install
命令记录下来, 备查;
附录A 20201103 安装Anaconda3时自动安装的库
Time | Package |
---|---|
2018-09-04 21:09:52 | path.py 11.1.0 |
2020-11-03 11:57:00.282130 | PySocks 1.6.8 |
2020-11-03 11:57:00.282130 | PyYAML 3.13 |
2020-11-03 11:57:00.282130 | appdirs 1.4.3 |
2020-11-03 11:57:00.282130 | contextlib2 0.5.5 |
2020-11-03 11:57:00.282130 | cycler 0.10.0 |
2020-11-03 11:57:00.282130 | decorator 4.3.0 |
2020-11-03 11:57:00.282130 | entrypoints 0.2.3 |
2020-11-03 11:57:00.282130 | filelock 3.0.8 |
2020-11-03 11:57:00.282130 | greenlet 0.4.15 |
2020-11-03 11:57:00.282130 | heapdict 1.0.0 |
2020-11-03 11:57:00.282130 | imagesize 1.1.0 |
2020-11-03 11:57:00.282130 | ipython-genutils 0.2.0 |
2020-11-03 11:57:00.282130 | itsdangerous 0.24 |
2020-11-03 11:57:00.282130 | jdcal 1.4 |
2020-11-03 11:57:00.282130 | jupyter 1.0.0 |
2020-11-03 11:57:00.282130 | jupyter-core 4.4.0 |
2020-11-03 11:57:00.282130 | kiwisolver 1.0.1 |
2020-11-03 11:57:00.282130 | mccabe 0.6.1 |
2020-11-03 11:57:00.282130 | mistune 0.8.3 |
2020-11-03 11:57:00.282130 | pandocfilters 1.4.2 |
2020-11-03 11:57:00.282130 | pep8 1.7.1 |
2020-11-03 11:57:00.282130 | pickleshare 0.7.4 |
2020-11-03 11:57:00.282130 | pycodestyle 2.4.0 |
2020-11-03 11:57:00.282130 | pycosat 0.6.3 |
2020-11-03 11:57:00.282130 | pycrypto 2.6.1 |
2020-11-03 11:57:00.282130 | pycurl 7.43.0.6 |
2020-11-03 11:57:00.282130 | pyodbc 4.0.24 |
2020-11-03 11:57:00.282130 | pyparsing 2.2.0 |
2020-11-03 11:57:00.282130 | pytest-astropy 0.4.0 |
2020-11-03 11:57:00.282130 | pywin32 223 |
2020-11-03 11:57:00.282130 | ruamel-yaml 0.15.46 |
2020-11-03 11:57:00.282130 | simplegeneric 0.8.1 |
2020-11-03 11:57:00.282130 | singledispatch 3.4.0.3 |
2020-11-03 11:57:00.282130 | six 1.11.0 |
2020-11-03 11:57:00.282130 | threadpoolctl 2.1.0 |
2020-11-03 11:57:00.282130 | win-inet-pton 1.0.1 |
2020-11-03 11:57:00.282130 | win-unicode-console 0.5 |
2020-11-03 11:57:00.282130 | wincertstore 0.2 |
2020-11-03 11:57:00.282130 | zipp 3.4.0 |
2020-11-03 11:57:01.750979 | alabaster 0.7.11 |
2020-11-03 11:57:01.766604 | asn1crypto 0.24.0 |
2020-11-03 11:57:01.782234 | atomicwrites 1.2.1 |
2020-11-03 11:57:01.797856 | attrs 18.2.0 |
2020-11-03 11:57:01.797856 | backcall 0.1.0 |
2020-11-03 11:57:01.813481 | backports.os 0.1.1 |
2020-11-03 11:57:01.813481 | backports.shutil-get-terminal-size 1.0.0 |
2020-11-03 11:57:01.813481 | beautifulsoup4 4.6.3 |
2020-11-03 11:57:01.829107 | bitarray 0.8.3 |
2020-11-03 11:57:01.844734 | boto 2.49.0 |
2020-11-03 11:57:02.000996 | certifi 2020.11.8 |
2020-11-03 11:57:02.000996 | chardet 3.0.4 |
2020-11-03 11:57:02.032246 | click 6.7 |
2020-11-03 11:57:02.032246 | cloudpickle 0.5.5 |
2020-11-03 11:57:02.047872 | colorama 0.3.9 |
2020-11-03 11:57:02.047872 | comtypes 1.1.7 |
2020-11-03 11:57:02.094752 | constantly 15.1.0 |
2020-11-03 11:57:02.110380 | dask 0.19.1 |
2020-11-03 11:57:02.188520 | defusedxml 0.5.0 |
2020-11-03 11:57:02.204133 | docutils 0.14 |
2020-11-03 11:57:02.391653 | et-xmlfile 1.0.1 |
2020-11-03 11:57:02.391653 | fastcache 1.0.2 |
2020-11-03 11:57:02.407272 | glob2 0.6 |
2020-11-03 11:57:02.869805 | idna 2.7 |
2020-11-03 11:57:02.885429 | incremental 17.5.0 |
2020-11-03 11:57:02.932308 | lazy-object-proxy 1.3.1 |
2020-11-03 11:57:03.072943 | llvmlite 0.24.0 |
2020-11-03 11:57:03.088568 | locket 0.2.0 |
2020-11-03 11:57:03.104196 | MarkupSafe 1.0 |
2020-11-03 11:57:03.119821 | mkl-service 2.3.0 |
2020-11-03 11:57:03.135447 | mpmath 1.0.0 |
2020-11-03 11:57:03.166698 | msgpack 0.5.6 |
2020-11-03 11:57:03.182345 | numpy 1.19.2 |
2020-11-03 11:57:03.354212 | olefile 0.46 |
2020-11-03 11:57:03.369838 | parso 0.3.1 |
2020-11-03 11:57:03.401089 | pkginfo 1.4.2 |
2020-11-03 11:57:03.416714 | pluggy 0.7.1 |
2020-11-03 11:57:03.416714 | ply 3.11 |
2020-11-03 11:57:03.432355 | psutil 5.4.7 |
2020-11-03 11:57:03.447967 | py 1.6.0 |
2020-11-03 11:57:03.463593 | pyasn1 0.4.4 |
2020-11-03 11:57:03.494853 | pycparser 2.18 |
2020-11-03 11:57:03.572979 | pyflakes 2.0.0 |
2020-11-03 11:57:03.588603 | pytz 2018.5 |
2020-11-03 11:57:03.901121 | QtPy 1.5.0 |
2020-11-03 11:57:03.932374 | rope 0.11.0 |
2020-11-03 11:57:03.979266 | Send2Trash 1.5.0 |
2020-11-03 11:57:04.026131 | snowballstemmer 1.2.1 |
2020-11-03 11:57:04.041757 | sortedcontainers 2.0.5 |
2020-11-03 11:57:04.041757 | sphinxcontrib-applehelp 1.0.2 |
2020-11-03 11:57:04.041757 | sphinxcontrib-devhelp 1.0.2 |
2020-11-03 11:57:04.041757 | sphinxcontrib-htmlhelp 1.0.3 |
2020-11-03 11:57:04.041757 | sphinxcontrib-jsmath 1.0.1 |
2020-11-03 11:57:04.041757 | sphinxcontrib-qthelp 1.0.3 |
2020-11-03 11:57:04.041757 | sphinxcontrib-serializinghtml 1.1.4 |
2020-11-03 11:57:04.041757 | sphinxcontrib-websupport 1.1.0 |
2020-11-03 11:57:04.057384 | SQLAlchemy 1.2.11 |
2020-11-03 11:57:04.119886 | tblib 1.3.2 |
2020-11-03 11:57:04.135513 | testpath 0.3.1 |
2020-11-03 11:57:04.135513 | toolz 0.9.0 |
2020-11-03 11:57:04.151138 | tornado 5.1 |
2020-11-03 11:57:04.198017 | tqdm 4.26.0 |
2020-11-03 11:57:04.198017 | unicodecsv 0.14.1 |
2020-11-03 11:57:04.213643 | wcwidth 0.1.7 |
2020-11-03 11:57:04.213643 | webencodings 0.5.1 |
2020-11-03 11:57:04.229269 | Werkzeug 0.14.1 |
2020-11-03 11:57:04.276148 | wrapt 1.10.11 |
2020-11-03 11:57:04.276148 | xlrd 1.1.0 |
2020-11-03 11:57:04.307400 | XlsxWriter 1.1.0 |
2020-11-03 11:57:04.338652 | xlwt 1.3.0 |
2020-11-03 11:57:04.369909 | astroid 2.0.4 |
2020-11-03 11:57:04.369909 | zope.interface 4.5.0 |
2020-11-03 11:57:04.401155 | Automat 0.7.0 |
2020-11-03 11:57:04.416780 | Babel 2.6.0 |
2020-11-03 11:57:04.651174 | cffi 1.11.5 |
2020-11-03 11:57:04.666798 | cytoolz 0.9.0.1 |
2020-11-03 11:57:04.698050 | html5lib 1.0.1 |
2020-11-03 11:57:04.713675 | hyperlink 18.0.0 |
2020-11-03 11:57:04.729302 | jedi 0.12.1 |
2020-11-03 11:57:04.760554 | keyring 13.2.1 |
2020-11-03 11:57:04.807433 | menuinst 1.4.14 |
2020-11-03 11:57:04.807433 | more-itertools 4.3.0 |
2020-11-03 11:57:04.823058 | multipledispatch 0.6.0 |
2020-11-03 11:57:04.838883 | networkx 2.1 |
2020-11-03 11:57:05.026198 | nltk 3.3 |
2020-11-03 11:57:05.151205 | openpyxl 2.5.6 |
2020-11-03 11:57:05.229352 | packaging 17.1 |
2020-11-03 11:57:05.229352 | partd 0.3.8 |
2020-11-03 11:57:05.244962 | pathlib2 2.3.2 |
2020-11-03 11:57:05.244962 | pyasn1-modules 0.2.2 |
2020-11-03 11:57:05.276213 | python-dateutil 2.7.3 |
2020-11-03 11:57:05.291847 | pyzmq 17.1.2 |
2020-11-03 11:57:07.307599 | QtAwesome 0.4.4 |
2020-11-03 11:57:07.323224 | setuptools 40.2.0 |
2020-11-03 11:57:07.370103 | sortedcollections 1.0.1 |
2020-11-03 11:57:07.385728 | sympy 1.1.1 |
2020-11-03 11:57:07.838882 | traitlets 4.3.2 |
2020-11-03 11:57:07.854510 | xlwings 0.11.8 |
2020-11-03 11:57:07.870135 | zict 0.1.3 |
2020-11-03 11:57:07.901387 | bleach 2.1.4 |
2020-11-03 11:57:07.917015 | clyent 1.2.2 |
2020-11-03 11:57:07.932640 | cryptography 3.1.1 |
2020-11-03 11:57:07.963894 | Cython 0.28.5 |
2020-11-03 11:57:08.042021 | distributed 1.23.1 |
2020-11-03 11:57:08.120153 | gevent 1.3.6 |
2020-11-03 11:57:08.167029 | isort 4.3.4 |
2020-11-03 11:57:08.182659 | Jinja2 2.10 |
2020-11-03 11:57:08.182659 | jsonschema 2.6.0 |
2020-11-03 11:57:08.229534 | lxml 4.2.5 |
2020-11-03 11:57:08.260794 | nose 1.3.7 |
2020-11-03 11:57:08.276412 | Pillow 5.2.0 |
2020-11-03 11:57:08.323298 | Pygments 2.2.0 |
2020-11-03 11:57:08.573307 | pytest 3.8.0 |
2020-11-03 11:57:08.604559 | pywinpty 0.5.4 |
2020-11-03 11:57:08.620185 | wheel 0.31.1 |
2020-11-03 11:57:08.635819 | Flask 1.0.2 |
2020-11-03 11:57:08.635819 | jupyter-client 5.2.3 |
2020-11-03 11:57:08.667062 | navigator-updater 0.2.1 |
2020-11-03 11:57:08.698315 | nbformat 4.4.0 |
2020-11-03 11:57:08.838957 | prompt-toolkit 1.0.15 |
2020-11-03 11:57:08.870201 | pylint 2.1.1 |
2020-11-03 11:57:09.151470 | pyOpenSSL 18.0.0 |
2020-11-03 11:57:09.167097 | pytest-openfiles 0.3.0 |
2020-11-03 11:57:09.167097 | pytest-remotedata 0.3.0 |
2020-11-03 11:57:09.182722 | Flask-Cors 3.0.6 |
2020-11-03 11:57:09.182722 | terminado 0.8.1 |
2020-11-03 11:57:09.198348 | ipython 6.5.0 |
2020-11-03 11:57:09.307731 | nbconvert 5.4.0 |
2020-11-03 11:57:09.370237 | service-identity 17.0.0 |
2020-11-03 11:57:09.385863 | urllib3 1.23 |
2020-11-03 11:57:09.401487 | ipykernel 4.10.0 |
2020-11-03 11:57:10.906780 | requests 2.19.1 |
2020-11-03 11:57:10.922392 | Twisted 18.7.0 |
2020-11-03 11:57:11.328668 | anaconda-client 1.7.2 |
2020-11-03 11:57:11.406806 | jupyter-console 5.2.0 |
2020-11-03 11:57:11.406806 | prometheus-client 0.3.1 |
2020-11-03 11:57:11.422424 | qtconsole 4.4.1 |
2020-11-03 11:57:11.438050 | Sphinx 1.7.9 |
2020-11-03 11:57:11.563058 | spyder-kernels 0.2.6 |
2020-11-03 11:57:11.578684 | anaconda-navigator 1.9.2 |
2020-11-03 11:57:11.672443 | anaconda-project 0.8.2 |
2020-11-03 11:57:11.734958 | notebook 5.6.0 |
2020-11-03 11:57:12.031853 | numpydoc 0.8.0 |
2020-11-03 11:57:12.047479 | jupyterlab-launcher 0.13.1 |
2020-11-03 11:57:12.063091 | spyder 3.3.1 |
2020-11-03 11:57:12.266232 | ipywidgets 7.4.1 |
2020-11-03 11:57:12.266232 | widgetsnbextension 3.4.1 |
2020-11-03 11:57:12.297490 | jupyterlab 0.34.9 |
2020-11-03 11:57:12.344369 | bokeh 0.13.0 |
2020-11-03 11:57:12.563133 | Bottleneck 1.2.1 |
2020-11-03 11:57:12.563133 | conda 4.9.2 |
2020-11-03 11:57:12.703760 | conda-build 3.15.1 |
2020-11-03 11:57:12.735011 | datashape 0.5.4 |
2020-11-03 11:57:12.750637 | h5py 2.8.0 |
2020-11-03 11:57:12.781888 | imageio 2.4.1 |
2020-11-03 11:57:12.797515 | matplotlib 2.2.3 |
2020-11-03 11:57:12.922532 | mkl-fft 1.2.0 |
2020-11-03 11:57:12.922532 | mkl-random 1.1.0 |
2020-11-03 11:57:12.938150 | numba 0.39.0 |
2020-11-03 11:57:13.141289 | numexpr 2.7.1 |
2020-11-03 11:57:13.156924 | pandas 0.23.4 |
2020-11-03 11:57:13.391305 | pytest-arraydiff 0.2 |
2020-11-03 11:57:13.391305 | pytest-doctestplus 0.1.3 |
2020-11-03 11:57:13.406940 | PyWavelets 1.0.0 |
2020-11-03 11:57:13.422556 | scipy 1.5.2 |
2020-11-03 11:57:13.703828 | bkcharts 0.2 |
2020-11-03 11:57:13.735077 | patsy 0.5.0 |
2020-11-03 11:57:13.750703 | tables 3.4.4 |
2020-11-03 11:57:13.813221 | scikit-image 0.14.0 |
2020-11-03 11:57:13.969470 | scikit-learn 0.23.2 |
2020-11-03 11:57:14.125727 | astropy 3.0.4 |
2020-11-03 11:57:14.532006 | odo 0.5.1 |
2020-11-03 11:57:14.563257 | statsmodels 0.9.0 |
2020-11-03 11:57:14.907038 | blaze 0.11.3 |
2020-11-03 11:57:14.953907 | seaborn 0.9.0 |
后记
笔者稍微修改了一下上面的代码, 这样似乎更精确:
# -*- coding: UTF-8 -*-
# @author: caoyang
# @email: caoyang@163.sufe.edu.cn
import os
from datetime import datetime
from pip._internal.utils.misc import get_installed_distributions
class PipLogger(object):
def __init__(self):
pass
def logging_pip_install_packages(self):
packages = []
for package in get_installed_distributions():
package_metadata_path = os.path.dirname(package._get_metadata_path_for_display('RECORD'))
created_time = os.path.getctime(package_metadata_path)
modified_time = os.path.getmtime(package_metadata_path)
created_time = datetime.fromtimestamp(created_time)
modified_time = datetime.fromtimestamp(modified_time)
packages.append([created_time, modified_time, str(package)])
print('|Index|createdTime|modifiedTime|package|')
print('|----|----|----|----|')
index = 0
for created_time, modified_time, package_name_version in sorted(packages):
index += 1
print("|||||".format(index, created_time, modified_time, package_name_version))
if __name__ == '__main__':
pip_logger = PipLogger()
pip_logger.logging_pip_install_packages()
得出的结果就是这样的了, 一目了然, 非常满足强迫症:
anaconda自带安装的库
Index | createdTime | modifiedTime | package |
---|---|---|---|
1 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | PyYAML 3.13 |
2 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | bitarray 0.8.3 |
3 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | boto 2.49.0 |
4 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | docutils 0.14 |
5 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | entrypoints 0.2.3 |
6 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | heapdict 1.0.0 |
7 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | imageio 2.4.1 |
8 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | ipython-genutils 0.2.0 |
9 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | llvmlite 0.24.0 |
10 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | locket 0.2.0 |
11 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | menuinst 1.4.14 |
12 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | mpmath 1.0.0 |
13 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | pycosat 0.6.3 |
14 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | pycrypto 2.6.1 |
15 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | pycurl 7.43.0.6 |
16 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | pyreadline 2.1 |
17 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | qtconsole 4.4.1 |
18 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | ruamel-yaml 0.15.46 |
19 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | snowballstemmer 1.2.1 |
20 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | spyder 3.3.1 |
21 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | sympy 1.1.1 |
22 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | terminado 0.8.1 |
23 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | win-inet-pton 1.0.1 |
24 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | wincertstore 0.2 |
25 | 2020-11-03 11:57:00.282130 | 2020-11-30 12:44:06.155658 | wrapt 1.10.11 |
26 | 2020-11-03 11:57:01.750979 | 2020-11-03 11:57:01.750979 | alabaster 0.7.11 |
27 | 2020-11-03 11:57:01.766604 | 2020-11-03 11:57:01.766604 | appdirs 1.4.3 |
28 | 2020-11-03 11:57:01.766604 | 2020-11-03 11:57:01.766604 | asn1crypto 0.24.0 |
29 | 2020-11-03 11:57:01.782234 | 2020-11-03 11:57:01.782234 | atomicwrites 1.2.1 |
30 | 2020-11-03 11:57:01.797856 | 2020-11-03 11:57:01.797856 | attrs 18.2.0 |
31 | 2020-11-03 11:57:01.797856 | 2020-11-03 11:57:01.797856 | backcall 0.1.0 |
32 | 2020-11-03 11:57:01.813481 | 2020-11-03 11:57:01.813481 | beautifulsoup4 4.6.3 |
33 | 2020-11-03 11:57:02.000996 | 2020-11-03 11:57:02.000996 | chardet 3.0.4 |
34 | 2020-11-03 11:57:02.016619 | 2020-11-03 11:57:02.032246 | click 6.7 |
35 | 2020-11-03 11:57:02.032246 | 2020-11-03 11:57:02.032246 | cloudpickle 0.5.5 |
36 | 2020-11-03 11:57:02.047872 | 2020-11-03 11:57:02.047872 | colorama 0.3.9 |
37 | 2020-11-03 11:57:02.047872 | 2020-11-03 11:57:02.047872 | comtypes 1.1.7 |
38 | 2020-11-03 11:57:02.094752 | 2020-11-03 11:57:02.094752 | constantly 15.1.0 |
39 | 2020-11-03 11:57:02.094752 | 2020-11-03 11:57:02.110380 | contextlib2 0.5.5 |
40 | 2020-11-03 11:57:02.110380 | 2020-11-03 11:57:02.110380 | dask 0.19.1 |
41 | 2020-11-03 11:57:02.172880 | 2020-11-03 11:57:02.188520 | decorator 4.3.0 |
42 | 2020-11-03 11:57:02.188520 | 2020-11-03 11:57:02.188520 | defusedxml 0.5.0 |
43 | 2020-11-03 11:57:02.376019 | 2020-11-03 11:57:02.391653 | et-xmlfile 1.0.1 |
44 | 2020-11-03 11:57:02.391653 | 2020-11-03 11:57:02.391653 | fastcache 1.0.2 |
45 | 2020-11-03 11:57:02.407272 | 2020-11-03 11:57:02.407272 | filelock 3.0.8 |
46 | 2020-11-03 11:57:02.407272 | 2020-11-03 11:57:02.407272 | glob2 0.6 |
47 | 2020-11-03 11:57:02.407272 | 2020-11-03 11:57:02.407272 | greenlet 0.4.15 |
48 | 2020-11-03 11:57:02.869805 | 2020-11-03 11:57:02.869805 | idna 2.7 |
49 | 2020-11-03 11:57:02.885429 | 2020-11-03 11:57:02.885429 | imagesize 1.1.0 |
50 | 2020-11-03 11:57:02.885429 | 2020-11-03 11:57:02.885429 | incremental 17.5.0 |
51 | 2020-11-03 11:57:02.901055 | 2020-11-03 11:57:02.916683 | itsdangerous 0.24 |
52 | 2020-11-03 11:57:02.916683 | 2020-11-03 11:57:02.916683 | jdcal 1.4 |
53 | 2020-11-03 11:57:02.916683 | 2020-11-03 11:57:02.916683 | kiwisolver 1.0.1 |
54 | 2020-11-03 11:57:02.932308 | 2020-11-03 11:57:02.932308 | lazy-object-proxy 1.3.1 |
55 | 2020-11-03 11:57:03.104196 | 2020-11-03 11:57:03.104196 | MarkupSafe 1.0 |
56 | 2020-11-03 11:57:03.104196 | 2020-11-03 11:57:03.104196 | mccabe 0.6.1 |
57 | 2020-11-03 11:57:03.119821 | 2020-11-03 11:57:03.119821 | mistune 0.8.3 |
58 | 2020-11-03 11:57:03.166698 | 2020-11-03 11:57:03.166698 | msgpack 0.5.6 |
59 | 2020-11-03 11:57:03.354212 | 2020-11-03 11:57:03.354212 | olefile 0.46 |
60 | 2020-11-03 11:57:03.354212 | 2020-11-03 11:57:03.354212 | pandocfilters 1.4.2 |
61 | 2020-11-03 11:57:03.369838 | 2020-11-03 11:57:03.369838 | parso 0.3.1 |
62 | 2020-11-03 11:57:03.385471 | 2020-11-03 11:57:03.385471 | path.py 11.1.0 |
63 | 2020-11-03 11:57:03.385471 | 2020-11-03 11:57:03.385471 | pep8 1.7.1 |
64 | 2020-11-03 11:57:03.401089 | 2020-11-03 11:57:03.401089 | pickleshare 0.7.4 |
65 | 2020-11-03 11:57:03.401089 | 2020-11-03 11:57:03.401089 | pkginfo 1.4.2 |
66 | 2020-11-03 11:57:03.416714 | 2020-11-03 11:57:03.416714 | pluggy 0.7.1 |
67 | 2020-11-03 11:57:03.416714 | 2020-11-03 11:57:03.416714 | ply 3.11 |
68 | 2020-11-03 11:57:03.432355 | 2020-11-03 11:57:03.432355 | psutil 5.4.7 |
69 | 2020-11-03 11:57:03.447967 | 2020-11-03 11:57:03.447967 | py 1.6.0 |
70 | 2020-11-03 11:57:03.463593 | 2020-11-03 11:57:03.463593 | pyasn1 0.4.4 |
71 | 2020-11-03 11:57:03.479218 | 2020-11-03 11:57:03.494853 | pycodestyle 2.4.0 |
72 | 2020-11-03 11:57:03.494853 | 2020-11-03 11:57:03.494853 | pycparser 2.18 |
73 | 2020-11-03 11:57:03.572979 | 2020-11-03 11:57:03.572979 | pyflakes 2.0.0 |
74 | 2020-11-03 11:57:03.572979 | 2020-11-03 11:57:03.572979 | pyodbc 4.0.24 |
75 | 2020-11-03 11:57:03.588603 | 2020-11-03 11:57:03.588603 | pyparsing 2.2.0 |
76 | 2020-11-03 11:57:03.588603 | 2020-11-03 11:57:03.588603 | pytz 2018.5 |
77 | 2020-11-03 11:57:03.744861 | 2020-11-03 11:57:03.744861 | pywin32 223 |
78 | 2020-11-03 11:57:03.901121 | 2020-11-03 11:57:03.901121 | QtPy 1.5.0 |
79 | 2020-11-03 11:57:03.932374 | 2020-11-03 11:57:03.932374 | rope 0.11.0 |
80 | 2020-11-03 11:57:03.979266 | 2020-11-03 11:57:03.979266 | Send2Trash 1.5.0 |
81 | 2020-11-03 11:57:03.994886 | 2020-11-03 11:57:03.994886 | simplegeneric 0.8.1 |
82 | 2020-11-03 11:57:04.010513 | 2020-11-03 11:57:04.010513 | six 1.11.0 |
83 | 2020-11-03 11:57:04.041757 | 2020-11-03 11:57:04.041757 | sortedcontainers 2.0.5 |
84 | 2020-11-03 11:57:04.041757 | 2020-11-03 11:57:04.057384 | SQLAlchemy 1.2.11 |
85 | 2020-11-03 11:57:04.119886 | 2020-11-03 11:57:04.119886 | tblib 1.3.2 |
86 | 2020-11-03 11:57:04.135513 | 2020-11-03 11:57:04.135513 | testpath 0.3.1 |
87 | 2020-11-03 11:57:04.135513 | 2020-11-03 11:57:04.135513 | toolz 0.9.0 |
88 | 2020-11-03 11:57:04.151138 | 2020-11-03 11:57:04.151138 | tornado 5.1 |
89 | 2020-11-03 11:57:04.198017 | 2020-11-03 11:57:04.198017 | tqdm 4.26.0 |
90 | 2020-11-03 11:57:04.198017 | 2020-11-03 11:57:04.198017 | unicodecsv 0.14.1 |
91 | 2020-11-03 11:57:04.213643 | 2020-11-03 11:57:04.213643 | wcwidth 0.1.7 |
92 | 2020-11-03 11:57:04.213643 | 2020-11-03 11:57:04.213643 | webencodings 0.5.1 |
93 | 2020-11-03 11:57:04.229269 | 2020-11-03 11:57:04.229269 | Werkzeug 0.14.1 |
94 | 2020-11-03 11:57:04.260732 | 2020-11-03 11:57:04.260732 | win-unicode-console 0.5 |
95 | 2020-11-03 11:57:04.276148 | 2020-11-03 11:57:04.276148 | xlrd 1.1.0 |
96 | 2020-11-03 11:57:04.307400 | 2020-11-03 11:57:04.307400 | XlsxWriter 1.1.0 |
97 | 2020-11-03 11:57:04.323025 | 2020-11-03 11:57:04.338652 | xlwt 1.3.0 |
98 | 2020-11-03 11:57:04.369909 | 2020-11-03 11:57:04.369909 | astroid 2.0.4 |
99 | 2020-11-03 11:57:04.401155 | 2020-11-03 11:57:04.401155 | Automat 0.7.0 |
100 | 2020-11-03 11:57:04.416780 | 2020-11-03 11:57:04.416780 | Babel 2.6.0 |
101 | 2020-11-03 11:57:04.635545 | 2020-11-03 11:57:04.635545 | backports.shutil-get-terminal-size 1.0.0 |
102 | 2020-11-03 11:57:04.651174 | 2020-11-03 11:57:04.651174 | cffi 1.11.5 |
103 | 2020-11-03 11:57:04.666798 | 2020-11-03 11:57:04.666798 | cycler 0.10.0 |
104 | 2020-11-03 11:57:04.666798 | 2020-11-03 11:57:04.666798 | cytoolz 0.9.0.1 |
105 | 2020-11-03 11:57:04.698050 | 2020-11-03 11:57:04.698050 | html5lib 1.0.1 |
106 | 2020-11-03 11:57:04.713675 | 2020-11-03 11:57:04.713675 | hyperlink 18.0.0 |
107 | 2020-11-03 11:57:04.729302 | 2020-11-03 11:57:04.729302 | jedi 0.12.1 |
108 | 2020-11-03 11:57:04.760554 | 2020-11-03 11:57:04.760554 | keyring 13.2.1 |
109 | 2020-11-03 11:57:04.807433 | 2020-11-03 11:57:04.807433 | more-itertools 4.3.0 |
110 | 2020-11-03 11:57:04.823058 | 2020-11-03 11:57:04.823058 | multipledispatch 0.6.0 |
111 | 2020-11-03 11:57:04.823058 | 2020-11-03 11:57:04.838883 | networkx 2.1 |
112 | 2020-11-03 11:57:05.026198 | 2020-11-03 11:57:05.026198 | nltk 3.3 |
113 | 2020-11-03 11:57:05.151205 | 2020-11-03 11:57:05.151205 | openpyxl 2.5.6 |
114 | 2020-11-03 11:57:05.229352 | 2020-11-03 11:57:05.229352 | packaging 17.1 |
115 | 2020-11-03 11:57:05.229352 | 2020-11-03 11:57:05.229352 | partd 0.3.8 |
116 | 2020-11-03 11:57:05.244962 | 2020-11-03 11:57:05.244962 | pathlib2 2.3.2 |
117 | 2020-11-03 11:57:05.244962 | 2020-11-03 11:57:05.244962 | pyasn1-modules 0.2.2 |
118 | 2020-11-03 11:57:05.260595 | 2020-11-03 11:57:05.260595 | PySocks 1.6.8 |
119 | 2020-11-03 11:57:05.276213 | 2020-11-03 11:57:05.276213 | python-dateutil 2.7.3 |
120 | 2020-11-03 11:57:05.291847 | 2020-11-03 11:57:05.291847 | pyzmq 17.1.2 |
121 | 2020-11-03 11:57:07.307599 | 2020-11-03 11:57:07.307599 | QtAwesome 0.4.4 |
122 | 2020-11-03 11:57:07.323224 | 2020-11-03 11:57:07.323224 | setuptools 40.2.0 |
123 | 2020-11-03 11:57:07.354475 | 2020-11-03 11:57:07.354475 | singledispatch 3.4.0.3 |
124 | 2020-11-03 11:57:07.370103 | 2020-11-03 11:57:07.370103 | sortedcollections 1.0.1 |
125 | 2020-11-03 11:57:07.370103 | 2020-11-03 11:57:07.385728 | sphinxcontrib-websupport 1.1.0 |
126 | 2020-11-03 11:57:07.838882 | 2020-11-03 11:57:07.838882 | traitlets 4.3.2 |
127 | 2020-11-03 11:57:07.854510 | 2020-11-03 11:57:07.854510 | xlwings 0.11.8 |
128 | 2020-11-03 11:57:07.870135 | 2020-11-03 11:57:07.870135 | zict 0.1.3 |
129 | 2020-11-03 11:57:07.885761 | 2020-11-03 11:57:07.885761 | zope.interface 4.5.0 |
130 | 2020-11-03 11:57:07.901387 | 2020-11-03 11:57:07.901387 | bleach 2.1.4 |
131 | 2020-11-03 11:57:07.917015 | 2020-11-03 11:57:07.917015 | clyent 1.2.2 |
132 | 2020-11-03 11:57:07.963894 | 2020-11-03 11:57:07.963894 | Cython 0.28.5 |
133 | 2020-11-03 11:57:08.042021 | 2020-11-03 11:57:08.042021 | distributed 1.23.1 |
134 | 2020-11-03 11:57:08.120153 | 2020-11-03 11:57:08.120153 | gevent 1.3.6 |
135 | 2020-11-03 11:57:08.167029 | 2020-11-03 11:57:08.167029 | Jinja2 2.10 |
136 | 2020-11-03 11:57:08.167029 | 2020-11-03 11:57:08.167029 | isort 4.3.4 |
137 | 2020-11-03 11:57:08.182659 | 2020-11-03 11:57:08.182659 | jsonschema 2.6.0 |
138 | 2020-11-03 11:57:08.213917 | 2020-11-03 11:57:08.213917 | jupyter-core 4.4.0 |
139 | 2020-11-03 11:57:08.229534 | 2020-11-03 11:57:08.229534 | lxml 4.2.5 |
140 | 2020-11-03 11:57:08.245161 | 2020-11-03 11:57:08.260794 | nose 1.3.7 |
141 | 2020-11-03 11:57:08.307665 | 2020-11-03 11:57:08.307665 | Pillow 5.2.0 |
142 | 2020-11-03 11:57:08.323298 | 2020-11-03 11:57:08.323298 | Pygments 2.2.0 |
143 | 2020-11-03 11:57:08.604559 | 2020-11-03 11:57:08.604559 | pytest 3.8.0 |
144 | 2020-11-03 11:57:08.604559 | 2020-11-03 11:57:08.604559 | pywinpty 0.5.4 |
145 | 2020-11-03 11:57:08.620185 | 2020-11-03 11:57:08.620185 | wheel 0.31.1 |
146 | 2020-11-03 11:57:08.620185 | 2020-11-03 11:57:08.635819 | Flask 1.0.2 |
147 | 2020-11-03 11:57:08.635819 | 2020-11-03 11:57:08.635819 | jupyter-client 5.2.3 |
148 | 2020-11-03 11:57:08.667062 | 2020-11-03 11:57:08.667062 | navigator-updater 0.2.1 |
149 | 2020-11-03 11:57:08.698315 | 2020-11-03 11:57:08.698315 | nbformat 4.4.0 |
150 | 2020-11-03 11:57:08.823323 | 2020-11-03 11:57:08.838957 | prompt-toolkit 1.0.15 |
151 | 2020-11-03 11:57:08.870201 | 2020-11-03 11:57:08.870201 | pylint 2.1.1 |
152 | 2020-11-03 11:57:09.151470 | 2020-11-03 11:57:09.151470 | pyOpenSSL 18.0.0 |
153 | 2020-11-03 11:57:09.167097 | 2020-11-03 11:57:09.167097 | pytest-openfiles 0.3.0 |
154 | 2020-11-03 11:57:09.167097 | 2020-11-03 11:57:09.167097 | pytest-remotedata 0.3.0 |
155 | 2020-11-03 11:57:09.182722 | 2020-11-03 11:57:09.182722 | Flask-Cors 3.0.6 |
156 | 2020-11-03 11:57:09.292104 | 2020-11-03 11:57:09.292104 | ipython 6.5.0 |
157 | 2020-11-03 11:57:09.307731 | 2020-11-03 11:57:09.307731 | nbconvert 5.4.0 |
158 | 2020-11-03 11:57:09.370237 | 2020-11-03 11:57:09.370237 | service-identity 17.0.0 |
159 | 2020-11-03 11:57:09.385863 | 2020-11-03 11:57:09.385863 | urllib3 1.23 |
160 | 2020-11-03 11:57:09.401487 | 2020-11-03 11:57:09.401487 | ipykernel 4.10.0 |
161 | 2020-11-03 11:57:10.906780 | 2020-11-03 11:57:10.906780 | requests 2.19.1 |
162 | 2020-11-03 11:57:10.922392 | 2020-11-03 11:57:10.922392 | Twisted 18.7.0 |
163 | 2020-11-03 11:57:11.328668 | 2020-11-03 11:57:11.328668 | anaconda-client 1.7.2 |
164 | 2020-11-03 11:57:11.391173 | 2020-11-03 11:57:11.406806 | jupyter-console 5.2.0 |
165 | 2020-11-03 11:57:11.406806 | 2020-11-03 11:57:11.406806 | prometheus-client 0.3.1 |
166 | 2020-11-03 11:57:11.438050 | 2020-11-03 11:57:11.438050 | Sphinx 1.7.9 |
167 | 2020-11-03 11:57:11.563058 | 2020-11-03 11:57:11.563058 | spyder-kernels 0.2.6 |
168 | 2020-11-03 11:57:11.578684 | 2020-11-03 11:57:11.578684 | anaconda-navigator 1.9.2 |
169 | 2020-11-03 11:57:11.672443 | 2020-11-03 11:57:11.672443 | anaconda-project 0.8.2 |
170 | 2020-11-03 11:57:11.734958 | 2020-11-03 11:57:11.734958 | notebook 5.6.0 |
171 | 2020-11-03 11:57:12.031853 | 2020-11-03 11:57:12.031853 | numpydoc 0.8.0 |
172 | 2020-11-03 11:57:12.047479 | 2020-11-03 11:57:12.047479 | jupyterlab-launcher 0.13.1 |
173 | 2020-11-03 11:57:12.250604 | 2020-11-03 11:57:12.266232 | widgetsnbextension 3.4.1 |
174 | 2020-11-03 11:57:12.266232 | 2020-11-03 11:57:12.266232 | ipywidgets 7.4.1 |
175 | 2020-11-03 11:57:12.281856 | 2020-11-03 11:57:12.297490 | jupyterlab 0.34.9 |
176 | 2020-11-03 11:57:12.344369 | 2020-11-03 11:57:12.344369 | bokeh 0.13.0 |
177 | 2020-11-03 11:57:12.344369 | 2020-11-03 11:57:12.344369 | jupyter 1.0.0 |
178 | 2020-11-03 11:57:12.547498 | 2020-11-03 11:57:12.563133 | Bottleneck 1.2.1 |
179 | 2020-11-03 11:57:12.688133 | 2020-11-03 11:57:12.703760 | conda-build 3.15.1 |
180 | 2020-11-03 11:57:12.735011 | 2020-11-03 11:57:12.735011 | datashape 0.5.4 |
181 | 2020-11-03 11:57:12.750637 | 2020-11-03 11:57:12.750637 | h5py 2.8.0 |
182 | 2020-11-03 11:57:12.797515 | 2020-11-03 11:57:12.797515 | matplotlib 2.2.3 |
183 | 2020-11-03 11:57:12.938150 | 2020-11-03 11:57:12.938150 | numba 0.39.0 |
184 | 2020-11-03 11:57:13.156924 | 2020-11-03 11:57:13.156924 | pandas 0.23.4 |
185 | 2020-11-03 11:57:13.391305 | 2020-11-03 11:57:13.391305 | pytest-arraydiff 0.2 |
186 | 2020-11-03 11:57:13.391305 | 2020-11-03 11:57:13.391305 | pytest-doctestplus 0.1.3 |
187 | 2020-11-03 11:57:13.406940 | 2020-11-03 11:57:13.406940 | PyWavelets 1.0.0 |
188 | 2020-11-03 11:57:13.703828 | 2020-11-03 11:57:13.703828 | bkcharts 0.2 |
189 | 2020-11-03 11:57:13.735077 | 2020-11-03 11:57:13.735077 | patsy 0.5.0 |
190 | 2020-11-03 11:57:13.750703 | 2020-11-03 11:57:13.781955 | tables 3.4.4 |
191 | 2020-11-03 11:57:13.813221 | 2020-11-03 11:57:13.813221 | pytest-astropy 0.4.0 |
192 | 2020-11-03 11:57:13.813221 | 2020-11-03 11:57:13.813221 | scikit-image 0.14.0 |
193 | 2020-11-03 11:57:14.125727 | 2020-11-03 11:57:14.125727 | astropy 3.0.4 |
194 | 2020-11-03 11:57:14.516387 | 2020-11-03 11:57:14.532006 | odo 0.5.1 |
195 | 2020-11-03 11:57:14.563257 | 2020-11-03 11:57:14.563257 | statsmodels 0.9.0 |
196 | 2020-11-03 11:57:14.907038 | 2020-11-03 11:57:14.907038 | blaze 0.11.3 |
197 | 2020-11-03 11:57:14.953907 | 2020-11-03 11:57:14.953907 | seaborn 0.9.0 |
198 | 2020-11-03 14:43:00.543307 | 2020-11-03 14:43:01.075886 | selenium 3.141.0 |
199 | 2020-11-03 15:31:08.352692 | 2020-11-03 15:31:08.386588 | opencv-python 4.4.0.46 |
pip list 常规日志
Index | createdTime | modifiedTime | package | note |
---|---|---|---|---|
200 | 2020-11-15 13:27:43.735452 | 2020-11-15 13:27:43.735452 | conda-package-handling 1.7.2 | 与安装torch 相关; |
201 | 2020-11-15 13:27:43.751065 | 2020-11-15 13:27:43.766689 | mkl-service 2.3.0 | 与安装torch 相关; |
202 | 2020-11-15 13:27:48.848269 | 2020-11-15 13:27:48.848269 | cryptography 3.1.1 | 与安装torch 相关; |
203 | 2020-11-15 13:27:49.160815 | 2020-11-19 15:24:03.165432 | conda 4.9.2 | 与安装torch 相关; |
204 | 2020-11-15 13:27:49.379571 | 2020-11-15 13:27:49.379571 | mkl-fft 1.2.0 | 与安装 以上是关于日常查看Python库的本地安装信息及pip库的使用方法(补tensorflow2.3.0所有依赖whl)的主要内容,如果未能解决你的问题,请参考以下文章 查看python第三方库的位置and-python自带的库pip安装的库 python3安装pandas执行pip3 install pandas命令后卡住不动的问题及安装scipysklearn库的numpy.distutils.system_info.NotFound( 使用pip命令和本地whl安装Python扩展库的方法(以scipy-1.5.4为例,附scipy-1.5.4高速下载链接) |