-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_env.py
38 lines (25 loc) · 872 Bytes
/
test_env.py
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
36
37
38
# this is a python file to test if the libraies are installed correctly
def test_python_libraries():
import numpy as np
print("Numpy Installed Successfully!")
import pandas as pd
print("Pandas Installed Successfully!")
import matplotlib.pyplot as plt
print("Matplotlib Installed Successfully!")
import sklearn
print("Sklearn Installed Successfully!")
import torch
print("Pytorch Installed Successfully!")
import lightning
print("Pytorch Lightning Installed Successfully!")
import tqdm
print("Tqdm Installed Successfully!")
import numba
print("Numba Installed Successfully!")
return True
if __name__ == "__main__":
result = test_python_libraries()
if result:
print("All libraries are installed correctly")
else:
print("Some libraries are not installed correctly")