-
Notifications
You must be signed in to change notification settings - Fork 1
/
requirements.py
32 lines (28 loc) · 1012 Bytes
/
requirements.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
import os
import subprocess
def sysChecks():
pip=os.system("pip3 --version")
# print(pip)
if pip != 0:
print('Please install PIP3 for the software to work :))')
exit()
# if pip == '\'pip3\' is not recognized as an internal or external command,operable program or batch file.':
# print('Please install PIP3 for the software to work :))')
# exit()
# try:
# pip=os.system("pip3")
# except IOError as e:
# print("{}\nPlease install PIP3 for the software to work :))".format(e))
# exit()
def main():
sysChecks()
rarfile=os.system("pip3 install rarfile pyfiglet py-term")
if rarfile==0:
os.system("pip3 install termcolor")
else:
print("Cannot install rarfile,pyfiglet,py-term.\nConsider installing the scripts seperately.")
exit()
tqdm=os.system("pip3 install tqdm")
print("All systems are a go! :))")
if __name__ == "__main__":
main()