forked from idaholab/WiiBin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Install.py
53 lines (42 loc) · 1.5 KB
/
Install.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import shutil
import os
import subprocess
import sys
if sys.version_info<(3,6,0):
print("You need python 3.6 or later to run this script\n")
exit(1)
#Confirm if virtual env is desired
print('\n-------------------------------------------------------------')
print('A virtual envrionment is recommended.')
print('The remainder of this script may overwirte existing packages.')
print('If you are sure you wish to continue press ENTER.')
print('Otherwise exit by pressing Ctrl+Z')
print('-------------------------------------------------------------')
input()
#check pip3
pip3Results = os.system("sudo apt install python3-pip")
print('pip3 Installed')
#check wheel
wheelResults = os.system("pip3 install wheel")
print('wheel Installed')
#check tkinter
tkinterResults = os.system("sudo apt install python3-tk")
print('tkinter Installed')
#check binwalk
binwalkResults = os.system("sudo apt install binwalk")
print('binwalk Installed')
#check sklearn version
cythonResults = os.system("pip3 install Cython")
scikitResults = os.system("pip3 install scikit-learn==0.22.1")
print('scikit and Cython Installed')
#check numpy
numpyResults = os.system("pip3 install numpy")
print('numpy Installed')
#check pandas
pandasResults = os.system("pip3 install pandas")
print('pandas Installed')
#check matplotlib
matplotlibResults = os.system("pip3 install matplotlib")
print('matplotlib Installed')
print()
print('WiiBin should be ready to run with the command: python3 WiiBin.py')