Last active
May 5, 2020 11:40
-
-
Save blairconrad/37888634031016865dec93c33ff7b48f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import platform | |
import sys | |
import importlib | |
output = [ | |
platform.platform(), | |
"Python " + sys.version, | |
] | |
for module in ("pydicom", "numpy", "PIL", "imagecodecs", "gdcm"): | |
try: | |
m = importlib.import_module(module) | |
output.append(module + " " + m.__version__) | |
except: | |
pass | |
print("\n".join(output)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment