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.")