None of the above worked for me. With Raspbian Stretch (June 2018 Version, Kernel 4.14), Python 3.5 and picamera 1.13 I used: import picamera with picamera.PiCamera() as cam: print(cam.revision)