如何获得CherryPy版本

Zec*_*eck 13 python terminal ubuntu cherrypy

我对CherryPy很新.我想知道我的机器中安装了哪个CherryPy版本.如何在终端获得CherryPy版本?

谢谢你教育我.

syn*_*tel 27

python -c "import cherrypy;print cherrypy.__version__"
Run Code Online (Sandbox Code Playgroud)

  • 对于 python3 版本 `python3 -c "importcherrypy; print (cherrypy.__version__)"` (2认同)