怎么看python包的版本

图片[1]-怎么看python包的版本-uusu优素-乐高,模型,3d打印,编程

查看模块的版本有两种方法,具体如下
1.模块名.version:

>>>importrequests
>>>requests.__version__
'2.18.4'

2.help(模块名) 看大概倒数的 VERSION 即版本号

>>>help(requests)
...
VERSION
2.18.4
AUTHOR
KennethReitz
FILE
d:\python\python35\lib\site-packages\requests\__init__.py
原文来自:https://www.py.cn
© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享