Spaces:
Sleeping
Sleeping
File size: 681 Bytes
294928d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import sys
print(f"Python version: {sys.version}")
try:
import tensorflow as tf
print(f"TensorFlow version: {tf.__version__}")
except Exception as e:
print(f"TensorFlow import failed: {e}")
try:
import keras
print(f"Keras version: {keras.__version__}")
except Exception as e:
print(f"Keras import failed: {e}")
try:
from tensorflow import keras as tf_keras
print("from tensorflow import keras successful")
except Exception as e:
print(f"from tensorflow import keras failed: {e}")
try:
import torch
print(f"PyTorch version: {torch.__version__}")
except Exception as e:
print(f"PyTorch import failed: {e}")
|