Skip to content

Instantly share code, notes, and snippets.

@aryan-jadon
Created September 12, 2022 22:34
Show Gist options
  • Save aryan-jadon/ff8579fcafda011433895c8e317377ba to your computer and use it in GitHub Desktop.
Save aryan-jadon/ff8579fcafda011433895c8e317377ba to your computer and use it in GitHub Desktop.
script to test packages versions after installation
# What version of Python do you have?
import sys
import tensorflow.keras
import pandas as pd
import sklearn as sk
import tensorflow as tf
import platform
print(f"Python Platform: {platform.platform()}")
print(f"Tensor Flow Version: {tf.__version__}")
print(f"Keras Version: {tensorflow.keras.__version__}")
print()
print(f"Python {sys.version}")
print(f"Pandas {pd.__version__}")
print(f"Scikit-Learn {sk.__version__}")
gpu = len(tf.config.list_physical_devices('GPU'))>0
print("GPU is", "available" if gpu else "NOT AVAILABLE")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment