Get Python Tornado Version?

2019-06-19 14:01发布

How do I get the current version of my python Tornado Module Version?

With other packages I can do the following:

print <modulename>.__version__

Source: How to check version of python modules?

3条回答
叼着烟拽天下
2楼-- · 2019-06-19 14:37

With no reference, or reason I tried the following:

print tornado.version

which seems to do the trick.

查看更多
姐就是有狂的资本
3楼-- · 2019-06-19 14:39

Tornado has both tornado.version, which is a string for human consumption (currently "4.2"), and tornado.version_info, which is a numeric tuple that is better for programmatic comparisons (currently (4, 2, 0, 0)). The fourth value of version_info will be negative for betas and other pre-releases.

查看更多
smile是对你的礼貌
4楼-- · 2019-06-19 14:50

If using Ubuntu open terminal type python , then import tornado, the write command tornado.version and u will get output like '4.2.1'

查看更多
登录 后发表回答