File size: 952 Bytes
795183d |
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 27 28 29 30 31 32 33 34 35 |
"""
Simple test to check if packages are installed
"""
print("Testing package imports...")
try:
import torch
print("β
torch imported successfully")
print(f" torch version: {torch.__version__}")
except ImportError as e:
print(f"β torch import failed: {e}")
try:
import transformers
print("β
transformers imported successfully")
print(f" transformers version: {transformers.__version__}")
except ImportError as e:
print(f"β transformers import failed: {e}")
try:
from PIL import Image
print("β
PIL (Pillow) imported successfully")
except ImportError as e:
print(f"β PIL import failed: {e}")
try:
import requests
print("β
requests imported successfully")
except ImportError as e:
print(f"β requests import failed: {e}")
print("\nAll basic imports tested!")
print("If all packages are imported successfully, you can run the main scripts.")
|