hbs2 commited on
Commit
7c27235
1 Parent(s): 7410761

Update launcher.py

Browse files
Files changed (1) hide show
  1. launcher.py +1 -7
launcher.py CHANGED
@@ -14,13 +14,7 @@ def install_packages_from_requirements(requirements_file):
14
  subprocess.run(['pip3', 'install', '-r', requirements_file, '--upgrade'], check=True)
15
  print("Packages installed successfully using pip3.")
16
  except subprocess.CalledProcessError:
17
- try:
18
- # If pip3 fails, try installing with pip
19
- subprocess.run(['pip', 'install', '-r', requirements_file, '--upgrade'], check=True)
20
- print("Packages installed successfully using pip.")
21
- except subprocess.CalledProcessError:
22
- print("Failed to install packages using both pip3 and pip.")
23
-
24
  def download_from_github(url, output_file):
25
  try:
26
  with urllib.request.urlopen(url) as response, open(output_file, 'wb') as out_file:
 
14
  subprocess.run(['pip3', 'install', '-r', requirements_file, '--upgrade'], check=True)
15
  print("Packages installed successfully using pip3.")
16
  except subprocess.CalledProcessError:
17
+
 
 
 
 
 
 
18
  def download_from_github(url, output_file):
19
  try:
20
  with urllib.request.urlopen(url) as response, open(output_file, 'wb') as out_file: