4 ms·
You can use pkg_resources which comes with setuptools to look up the version number of your package in setup.py: import pkg_resources pkg_resources.get_dis
by Flimm 14y ago
You can use pkg_resources which comes with setuptools to look up the version number of your package in setup.py:
import pkg_resources
pkg_resources.get_distribution("PIL").version