Created
September 12, 2022 22:34
-
-
Save aryan-jadon/ff8579fcafda011433895c8e317377ba to your computer and use it in GitHub Desktop.
script to test packages versions after installation
This file contains 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
# 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