Martin Packer
Martin Packer

Reputation: 763

Retrieving python-pptx version

My code (md2pptx) uses python-pptx. I would like it to display the python-pptx version.

Is there a practical way of doing that?

My reading of the docs suggests there isn't.

Upvotes: 2

Views: 433

Answers (1)

Martin Packer
Martin Packer

Reputation: 763

Thanks to @scanny for the following answer - the first of which I successfully used.

One of these should do the trick:

from pptx import __version__ as pptx_version
print(pptx_version)

import pptx
print(pptx.__version__)

Upvotes: 2

Related Questions