How to get CherryPy version
Asked Answered
G

4

12

I'm very new to CherryPy. I want to know which CherryPy version is installed in my machine. How to get CherryPy version in terminal?

Thank you for educate me.

Gothar answered 15/2, 2012 at 12:20 Comment(0)
K
28
python -c "import cherrypy;print cherrypy.__version__"
Karmen answered 15/2, 2012 at 12:23 Comment(2)
It is interesting that this does not work on my raspy, though cherrypy is running. I get an "unknown" as result.Maigre
For python3 version python3 -c "import cherrypy; print (cherrypy.__version__)"Brooder
P
2

Python 3 syntax:

python -c "import cherrypy;print(cherrypy.__version__)"
Pyriphlegethon answered 29/4, 2019 at 18:2 Comment(0)
C
1

In ubuntu, you just need to check the package version:

apt-cache policy python-cherrypy3

For example, in my system:

python-cherrypy3:
  Installed: 3.1.2-1
  Candidate: 3.1.2-1
  Version table:
 *** 3.1.2-1 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages
        100 /var/lib/dpkg/status
Chrotoem answered 15/2, 2012 at 12:22 Comment(2)
doesn't this assume it was installed via apt or the package manager in general? maybe he installed it via pip etc?Jammiejammin
@UkuLoskit Yes, I made that assumption. If that's not the case, then the answer from synthesizerpatel is the right one.Chrotoem
W
1

is

dpkg -l | grep -i cherrypy

what you are looking for?

Walrath answered 15/2, 2012 at 12:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.