Created
May 5, 2020 11:34
-
-
Save blairconrad/ae6a81c47bc3c96f13006d11b86ed1b6 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", "jpeg_ls", "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