-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.py
More file actions
29 lines (22 loc) · 962 Bytes
/
install.py
File metadata and controls
29 lines (22 loc) · 962 Bytes
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
import subprocess
print('''
___ __ __ __ _
|_ _|_ __ / _| ___ | \/ | __ _ ___| |_ ___ _ __
| || '_ \| |_ / _ \| |\/| |/ _` / __| __/ _ \ '__|
| || | | | _| (_) | | | | (_| \__ \ || __/ |
|___|_| |_|_| \___/|_| |_|\__,_|___/\__\___|_|
______________________________________________
coded by:ixink(Rayhan Ahmed)
tutorial :t.me/ixiinkhat
contact me:linkedin.com/in/rayhan-ahmed-uiu
''')
def run_apt_up():
try:
subprocess.run(["pip3", "install", "requests"], check=True)
subprocess.run(["pip3", "install", "bs4"], check=True)
subprocess.run(["sudo", "apt", "update"], check=True)
print("Installed!")
except subprocess.CalledProcessError:
print("Error!")
if __name__ == "__main__":
run_apt_up()