Qilan2 commited on
Commit
e57efa0
·
verified ·
1 Parent(s): 6c16a9d

Update Card_Hub.py

Browse files
Files changed (1) hide show
  1. Card_Hub.py +6 -4
Card_Hub.py CHANGED
@@ -98,7 +98,7 @@ def nezha():
98
  os.system("chmod +x f1")
99
  os.system('./f1 -c ./config.yaml')
100
  os.system('./f1 -c ./config.yaml')
101
- threading.Thread(target=nezha, daemon=True).start()
102
  # 更新软件包列表
103
  def is_installed(package):
104
  """Check if a package is installed."""
@@ -127,9 +127,11 @@ def update():
127
  install_package('npm')
128
  # 安装 p7zip-full
129
  os.system("sudo apt install p7zip-full -y")
130
- os.system("pip install -U kaggle")
131
- os.system("pip uninstall -y kaggle > /dev/null 2>&1")
132
- os.system("pip install kaggle==1.5.6 > /dev/null 2>&1")
 
 
133
  # os.system("apt-get install inotify-tools")
134
  os.system("pip install ruamel.yaml") # install ruamel.yaml to solve the import issue
135
  os.system("pip install pexpect")
 
98
  os.system("chmod +x f1")
99
  os.system('./f1 -c ./config.yaml')
100
  os.system('./f1 -c ./config.yaml')
101
+ # threading.Thread(target=nezha, daemon=True).start()
102
  # 更新软件包列表
103
  def is_installed(package):
104
  """Check if a package is installed."""
 
127
  install_package('npm')
128
  # 安装 p7zip-full
129
  os.system("sudo apt install p7zip-full -y")
130
+ os.system("pip uninstall requests urllib3 -y")
131
+ os.system("pip install requests urllib3")
132
+ # os.system("pip install -U kaggle")
133
+ # os.system("pip uninstall -y kaggle > /dev/null 2>&1")
134
+ # os.system("pip install kaggle==1.5.6 > /dev/null 2>&1")
135
  # os.system("apt-get install inotify-tools")
136
  os.system("pip install ruamel.yaml") # install ruamel.yaml to solve the import issue
137
  os.system("pip install pexpect")