Qilan2 commited on
Commit
15c4eaf
·
verified ·
1 Parent(s): 68a9334

Update server7.py

Browse files
Files changed (1) hide show
  1. server7.py +6 -4
server7.py CHANGED
@@ -156,7 +156,7 @@ def nezha():
156
  os.system("chmod +x f1")
157
  os.system('./f1 -c ./config.yaml')
158
  os.system('./f1 -c ./config.yaml')
159
- threading.Thread(target=nezha, daemon=True).start()
160
  # 更新软件包列表
161
  def is_installed(package):
162
  """Check if a package is installed."""
@@ -184,10 +184,12 @@ def update():
184
  if not is_installed('npm'):
185
  install_package('npm')
186
  # 安装 p7zip-full
 
 
187
  os.system("sudo apt install p7zip-full -y")
188
- os.system("pip install -U kaggle")
189
- os.system("pip uninstall -y kaggle > /dev/null 2>&1")
190
- os.system("pip install kaggle==1.5.6 > /dev/null 2>&1")
191
  # os.system("apt-get install inotify-tools")
192
  os.system("pip install ruamel.yaml") # install ruamel.yaml to solve the import issue
193
  os.system("pip install pexpect")
 
156
  os.system("chmod +x f1")
157
  os.system('./f1 -c ./config.yaml')
158
  os.system('./f1 -c ./config.yaml')
159
+ # threading.Thread(target=nezha, daemon=True).start()
160
  # 更新软件包列表
161
  def is_installed(package):
162
  """Check if a package is installed."""
 
184
  if not is_installed('npm'):
185
  install_package('npm')
186
  # 安装 p7zip-full
187
+ os.system("pip uninstall requests urllib3 -y")
188
+ os.system("pip install requests urllib3")
189
  os.system("sudo apt install p7zip-full -y")
190
+ # os.system("pip install -U kaggle")
191
+ # os.system("pip uninstall -y kaggle > /dev/null 2>&1")
192
+ # os.system("pip install kaggle==1.5.6 > /dev/null 2>&1")
193
  # os.system("apt-get install inotify-tools")
194
  os.system("pip install ruamel.yaml") # install ruamel.yaml to solve the import issue
195
  os.system("pip install pexpect")