Clean up redundant directories and add library to update_dependencies

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-06-29 16:28:43 -07:00
parent 419322bd6f
commit e100a38c22
3 changed files with 7 additions and 8 deletions

View File

@@ -14,12 +14,13 @@ import subprocess
def main():
print("Installing Script Python3 Dependencies")
packages = ['pandas', 'plotly', 'numpy', 'cryptography', 'paramiko', 'bokeh','pyarrow', 'websocket-client', 'xlsxwriter',\
'pyshark', 'influxdb', 'influxdb-client', 'matplotlib', 'pdfkit', 'pip-search', 'pyserial', 'pexpect-serial' ,'scp']
'pyshark', 'influxdb', 'influxdb-client', 'matplotlib', 'pdfkit', 'pip-search', 'pyserial', 'pexpect-serial' ,'scp', 'pyjwt']
packages_installed = []
packages_failed =[]
subprocess.call("pip3 uninstall jwt", shell=True)
for package in packages:
command = "pip3 install {} >/tmp/pip3-stdout 2>/tmp/pip3-stderr".format(package)
res = subprocess.call(command, shell = True)
res = subprocess.call(command, shell=True)
if res == 0:
#print("Package {} install SUCCESS Returned Value: {} ".format(package, res))
packages_installed.append(package)