tanbw commited on
Commit
36ddcdb
1 Parent(s): 715e156

no message

Browse files
Files changed (1) hide show
  1. deploy.sh +16 -0
deploy.sh CHANGED
@@ -1,3 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platform.
2
  pip install pynini==2.1.5
3
  pip install -r requirements.txt
 
1
+ # 安装 Python 3.8
2
+ sudo apt install -y python3.8
3
+
4
+ # 设置 Python 3.8 为默认的 Python 3 版本
5
+ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
6
+ sudo update-alternatives --config python3
7
+
8
+ # 验证 Python 版本
9
+ python3 --version
10
+
11
+ # 升级 pip
12
+ python3 -m pip install --upgrade pip
13
+
14
+ # 验证 pip 版本
15
+ pip --version
16
+
17
  # pynini is required by WeTextProcessing, use conda to install it as it can be executed on all platform.
18
  pip install pynini==2.1.5
19
  pip install -r requirements.txt