已合并
完善工具依赖文档和更新依赖安装脚本 #342
liu-wei创建于 2月9日
完善工具依赖文档和更新依赖安装脚本 #342
已合并
liu-wei创建于 2月9日
4 个文件变更+149-83
Mdocs/zh/context/quick_install.md+2-1
@@ -15,13 +15,14 @@
15 15 
16 本项目源码编译用到的依赖如下,请注意版本要求。16 本项目源码编译用到的依赖如下,请注意版本要求。
17 17 
18- - python >= 3.7.0(建议版本<= 3.10) 18+ - python >= 3.7.0(建议版本 <= 3.10)
19 - gcc >= 7.3.019 - gcc >= 7.3.0
20 - cmake >= 3.16.020 - cmake >= 3.16.0
21 - pigz(可选,安装后可提升打包速度,建议版本 >= 2.4)21 - pigz(可选,安装后可提升打包速度,建议版本 >= 2.4)
22 - dos2unix22 - dos2unix
23 - gawk23 - gawk
24 - make24 - make
25+ - googletest(仅执行UT时依赖,建议版本 [release-1.11.0](https://github.com/google/googletest/releases/tag/release-1.11.0))
25 26 
26 上述依赖包可通过项目根目录install\_deps.sh安装,命令如下,若遇到不支持系统,请参考该文件自行适配。27 上述依赖包可通过项目根目录install\_deps.sh安装,命令如下,若遇到不支持系统,请参考该文件自行适配。
27 ```bash28 ```bash
Minstall_deps.sh+134-80
@@ -1,6 +1,6 @@
1#!/bin/bash1#!/bin/bash
2# -----------------------------------------------------------------------------------------------------------2# -----------------------------------------------------------------------------------------------------------
3-# Copyright (c) 2025 Huawei Technologies Co., Ltd.3+# Copyright (c) 2025-2026 Huawei Technologies Co., Ltd.
4# This program is free software, you can redistribute it and/or modify it under the terms and conditions of4# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
5# CANN Open Software License Agreement Version 2.0 (the "License").5# CANN Open Software License Agreement Version 2.0 (the "License").
6# Please refer to the License for details. You may not use this file except in compliance with the License.6# Please refer to the License for details. You may not use this file except in compliance with the License.
@@ -13,20 +13,20 @@ set -euo pipefail
13 13 
14run_command() {14run_command() {
15 local cmd="$*"15 local cmd="$*"
16- echo "执行命令:$cmd"16+ echo "Executing command: $cmd"
17 17 
18 if ! output=$("$@" 2>&1); then18 if ! output=$("$@" 2>&1); then
19 local exit_code=$?19 local exit_code=$?
20- echo -e "\n命令执行失败!"20+ echo -e "\nCommand execution failed!"
21- echo -e "\n失败的命令:$cmd"21+ echo -e "\nFailed command: $cmd"
22- echo -e "\n错误输出:$output"22+ echo -e "\nError output: $output"
23- echo -e "\n退出码:$exit_code"23+ echo -e "\nExit code: $exit_code"
24 exit $exit_code24 exit $exit_code
25 fi25 fi
26}26}
27 27 
28version_ge() {28version_ge() {
29- # 版本比较,版本形式:xx.xx.xx29+ # Version comparison, format: xx.xx.xx
30 IFS='.' read -r -a curr_arr <<< "$1"30 IFS='.' read -r -a curr_arr <<< "$1"
31 IFS='.' read -r -a req_arr <<< "$2"31 IFS='.' read -r -a req_arr <<< "$2"
32 32 
@@ -43,7 +43,7 @@ version_ge() {
43}43}
44 44 
45detect_os() {45detect_os() {
46- # 操作系统检查,支持debian(使用apt下载), rhel(使用dnf或者yum)macos46+ # OS detection, supports debian (uses apt), rhel (uses dnf or yum), macos
47 if [[ "$(uname -s)" == "Linux" ]]; then47 if [[ "$(uname -s)" == "Linux" ]]; then
48 if [[ -f /etc/debian_version ]]; then48 if [[ -f /etc/debian_version ]]; then
49 OS="debian"49 OS="debian"
@@ -55,41 +55,38 @@ detect_os() {
55 else55 else
56 PKG_MANAGER="yum"56 PKG_MANAGER="yum"
57 fi57 fi
58- elif grep -qE '^NAME="openEuler"$|^NAME="EulerOS"$' /etc/os-release 2>/dev/null; then
59- OS="euler"
60- PKG_MANAGER="dnf"
61 else58 else
62- echo "不支持Linux发行版本"59+ echo "自动安装脚本不支持Linux发行版本,请手动安装依赖"
63 exit 160 exit 1
64 fi61 fi
65 elif [[ "$(uname -s)" == "Darwin" ]]; then62 elif [[ "$(uname -s)" == "Darwin" ]]; then
66 OS="macos"63 OS="macos"
67 if ! command -v brew &> /dev/null; then64 if ! command -v brew &> /dev/null; then
68- echo "请先安装Homebrew"65+ echo "Please install Homebrew first"
69 exit 166 exit 1
70 fi67 fi
71 PKG_MANAGER="brew"68 PKG_MANAGER="brew"
72 else69 else
73- echo "不支持的OS类型"70+ echo "Unsupported OS type"
74 exit 171 exit 1
75 fi72 fi
76}73}
77 74 
78install_gawk() {75install_gawk() {
79- echo -e "\n==== 检查gawk ===="76+ echo -e "\n==== Checking Gawk ===="
80 77 
81 if command -v gawk &> /dev/null; then78 if command -v gawk &> /dev/null; then
82- echo "gawk已安装"79+ echo "Gawk has been installed"
83 return80 return
84 fi81 fi
85 82 
86- echo "安装gawk..."83+ echo "Installing Gawk..."
87 case "$OS" in84 case "$OS" in
88 debian)85 debian)
89 run_command sudo $PKG_MANAGER update86 run_command sudo $PKG_MANAGER update
90 run_command sudo $PKG_MANAGER install -y gawk87 run_command sudo $PKG_MANAGER install -y gawk
91 ;;88 ;;
92- rhel|euler)89+ rhel)
93 run_command sudo $PKG_MANAGER install -y gawk90 run_command sudo $PKG_MANAGER install -y gawk
94 ;;91 ;;
95 macos)92 macos)
@@ -98,28 +95,28 @@ install_gawk() {
98 esac95 esac
99 96 
100 if command -v gawk &> /dev/null; then97 if command -v gawk &> /dev/null; then
101- echo "gawk安装成功"98+ echo "Gawk installed successfully"
102 else99 else
103- echo "gawk安装失败"100+ echo "Gawk installation failed"
104 exit 1101 exit 1
105 fi102 fi
106}103}
107 104 
108install_python() {105install_python() {
109- # python版本号>=3.7.0106+ # Python version >= 3.7.0
110- echo -e "\n==== 检查Python ===="107+ echo -e "\n==== Checking Python ===="
111 local req_ver="3.7.0"108 local req_ver="3.7.0"
112 local curr_ver=""109 local curr_ver=""
113 110 
114 if command -v python3 &> /dev/null; then111 if command -v python3 &> /dev/null; then
115 curr_ver=$(python3 --version 2>&1 | awk '{print $2}')112 curr_ver=$(python3 --version 2>&1 | awk '{print $2}')
116- echo "当前Python版本:$curr_ver"113+ echo "Current Python version: $curr_ver"
117 if version_ge "$curr_ver" "$req_ver"; then114 if version_ge "$curr_ver" "$req_ver"; then
118- echo "Python满足要求"115+ echo "Python version meets requirements"
119 return116 return
120 fi117 fi
121 fi118 fi
122- echo "安装pyton..."119+ echo "Installing Python..."
123 case "$OS" in120 case "$OS" in
124 debian)121 debian)
125 run_command sudo $PKG_MANAGER update122 run_command sudo $PKG_MANAGER update
@@ -130,7 +127,7 @@ install_python() {
130 run_command sudo $PKG_MANAGER install -y centos-release-scl127 run_command sudo $PKG_MANAGER install -y centos-release-scl
131 run_command sudo $PKG_MANAGER install -y rh-python38 rh-python38-python-devel128 run_command sudo $PKG_MANAGER install -y rh-python38 rh-python38-python-devel
132 run_command source /opt/rh/rh-python38/enable129 run_command source /opt/rh/rh-python38/enable
133- echo "需要执行 'source /opt/rh/rh-python38/enable' 激活python3.8"130+ echo "Need to execute 'source /opt/rh/rh-python38/enable' to activate python3.8"
134 else131 else
135 run_command sudo $PKG_MANAGER install -y python3 python3-pip python3-devel132 run_command sudo $PKG_MANAGER install -y python3 python3-pip python3-devel
136 fi133 fi
@@ -140,45 +137,42 @@ install_python() {
140 echo 'export PATH="/usr/local/opt/python@3.11/bin:$PATH"' >> ~/.zshrc137 echo 'export PATH="/usr/local/opt/python@3.11/bin:$PATH"' >> ~/.zshrc
141 run_command source ~/.zshrc138 run_command source ~/.zshrc
142 ;;139 ;;
143- euler)
144- run_command sudo $PKG_MANAGER install -y python3 python3-pip python3-devel
145- ;;
146 esac140 esac
147 141 
148 if command -v python3 &> /dev/null; then142 if command -v python3 &> /dev/null; then
149 curr_ver=$(python3 --version 2>&1 | awk '{print $2}')143 curr_ver=$(python3 --version 2>&1 | awk '{print $2}')
150 if version_ge "$curr_ver" "$req_ver"; then144 if version_ge "$curr_ver" "$req_ver"; then
151- echo "Python安装成功($curr_ver"145+ echo "Python installed successfully ($curr_ver)"
152 else146 else
153- echo "Python版本仍不满足,请手动安装解决"147+ echo "Python version still doesn't meet requirements, please install manually"
154 exit 1148 exit 1
155 fi149 fi
156 else150 else
157- echo "Python安装失败"151+ echo "Python installation failed"
158 exit 1152 exit 1
159 fi153 fi
160}154}
161 155 
162install_gcc() {156install_gcc() {
163- # gcc版本号>=7.3.0157+ # GCC version >= 7.3.0
164- echo -e "\n==== 检查GCC ===="158+ echo -e "\n==== Checking GCC ===="
165 local req_ver="7.3.0"159 local req_ver="7.3.0"
166 local curr_ver=""160 local curr_ver=""
167 161 
168 if command -v gcc &> /dev/null; then162 if command -v gcc &> /dev/null; then
169- curr_ver=$(gcc --version | awk '/^gcc/ {print $NF}')163+ curr_ver=$(gcc --version | awk '/^gcc/ {print $4}')
170 elif command -v g++ &> /dev/null; then164 elif command -v g++ &> /dev/null; then
171- curr_ver=$(g++ --version | awk '/^g\+\+/ {print $NF}')165+ curr_ver=$(g++ --version | awk '/^g\+\+/ {print $4}')
172 else166 else
173 curr_ver="0.0.0"167 curr_ver="0.0.0"
174 fi168 fi
175- echo "当前GCC版本: $curr_ver"169+ echo "Current GCC version: $curr_ver"
176 if version_ge "$curr_ver" "$req_ver"; then170 if version_ge "$curr_ver" "$req_ver"; then
177- echo "GCC版本满足要求($curr_ver"171+ echo "GCC version meets requirements ($curr_ver)"
178 return172 return
179 fi173 fi
180 174 
181- echo "安装GCC..."175+ echo "Installing GCC..."
182 case "$OS" in176 case "$OS" in
183 debian)177 debian)
184 run_command sudo $PKG_MANAGER update178 run_command sudo $PKG_MANAGER update
@@ -191,7 +185,7 @@ install_gcc() {
191 run_command sudo $PKG_MANAGER install -y centos-release-scl185 run_command sudo $PKG_MANAGER install -y centos-release-scl
192 run_command sudo $PKG_MANAGER install -y devtoolset-9-gcc devtoolset-9-gcc-c++186 run_command sudo $PKG_MANAGER install -y devtoolset-9-gcc devtoolset-9-gcc-c++
193 run_command source /opt/rh/devtoolset-9/enable187 run_command source /opt/rh/devtoolset-9/enable
194- echo "需要执行 'source /opt/rh/devtoolset-9/enable' 激活GCC9"188+ echo "Need to execute 'source /opt/rh/devtoolset-9/enable' to activate GCC9"
195 else189 else
196 run_command sudo $PKG_MANAGER install -y gcc gcc-c++190 run_command sudo $PKG_MANAGER install -y gcc gcc-c++
197 fi191 fi
@@ -205,109 +199,103 @@ install_gcc() {
205 echo 'export CXX=/usr/local/bin/g++-11' >> ~/.zshrc199 echo 'export CXX=/usr/local/bin/g++-11' >> ~/.zshrc
206 run_command source ~/.zshrc200 run_command source ~/.zshrc
207 ;;201 ;;
208- euler)
209- run_command sudo $PKG_MANAGER install -y gcc gcc-c++
210- ;;
211 esac202 esac
212 203 
213 if command -v gcc &> /dev/null; then204 if command -v gcc &> /dev/null; then
214- curr_ver=$(gcc --version | awk '/^gcc/ {print $NF}')205+ curr_ver=$(gcc --version | awk '/^gcc/ {print $4}')
215 if version_ge "$curr_ver" "$req_ver"; then206 if version_ge "$curr_ver" "$req_ver"; then
216- echo "GCC安装成功($curr_ver"207+ echo "GCC installed successfully ($curr_ver)"
217 else208 else
218- echo "GCC版本仍不满足,请手动安装。"209+ echo "GCC version still doesn't meet requirements, please install manually."
219 exit 1210 exit 1
220 fi211 fi
221 else212 else
222- echo "GCC安装失败"213+ echo "GCC installation failed"
223 exit 1214 exit 1
224 fi215 fi
225}216}
226 217 
227install_cmake() {218install_cmake() {
228- # cmake版本号>=3.16.0219+ # CMake version >= 3.16.0
229- echo -e "\n==== 检查cmake ===="220+ echo -e "\n==== Checking CMake ===="
230 local req_ver="3.16.0"221 local req_ver="3.16.0"
231 local curr_ver=""222 local curr_ver=""
232 223 
233 if command -v cmake &> /dev/null; then224 if command -v cmake &> /dev/null; then
234 curr_ver=$(cmake --version | awk '/^cmake/ {print $3}')225 curr_ver=$(cmake --version | awk '/^cmake/ {print $3}')
235- echo "当前cmake版本: $curr_ver"226+ echo "Current CMake version: $curr_ver"
236 if version_ge "$curr_ver" "$req_ver"; then227 if version_ge "$curr_ver" "$req_ver"; then
237- echo "CMake满足要求"228+ echo "CMake meets requirements"
238 return229 return
239 fi230 fi
240 fi231 fi
241 232 
242- echo "安装CMake..."233+ echo "Installing CMake..."
243 case "$OS" in234 case "$OS" in
244 debian)235 debian)
245 if grep -q "Ubuntu 18.04" /etc/os-release; then236 if grep -q "Ubuntu 18.04" /etc/os-release; then
246 run_command wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null237 run_command wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
247 run_command echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ bionic main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null238 run_command echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ bionic main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
248 run_command sudo apt update239 run_command sudo apt update
249- run_command sudo apt install -y cmake240+ run_command sudo apt install -y cmake make
250 else241 else
251 run_command sudo $PKG_MANAGER update242 run_command sudo $PKG_MANAGER update
252- run_command sudo $PKG_MANAGER install -y cmake243+ run_command sudo $PKG_MANAGER install -y cmake make
253 fi244 fi
254 ;;245 ;;
255 rhel)246 rhel)
256 if grep -q "release 7" /etc/redhat-release; then247 if grep -q "release 7" /etc/redhat-release; then
257 run_command sudo $PKG_MANAGER install -y epel-release248 run_command sudo $PKG_MANAGER install -y epel-release
258- run_command sudo $PKG_MANAGER install -y cmake3249+ run_command sudo $PKG_MANAGER install -y cmake3 make
259 run_command sudo ln -s /usr/bin/cmake3 /usr/bin/cmake250 run_command sudo ln -s /usr/bin/cmake3 /usr/bin/cmake
260 else251 else
261- run_command sudo $PKG_MANAGER install -y cmake252+ run_command sudo $PKG_MANAGER install -y cmake make
262 fi253 fi
263 ;;254 ;;
264 macos)255 macos)
265 run_command brew install cmake256 run_command brew install cmake
266 ;;257 ;;
267- euler)
268- run_command sudo $PKG_MANAGER install -y cmake make
269- ;;
270 esac258 esac
271 259 
272 if command -v cmake &> /dev/null; then260 if command -v cmake &> /dev/null; then
273 curr_ver=$(cmake --version | awk '/^cmake/ {print $3}')261 curr_ver=$(cmake --version | awk '/^cmake/ {print $3}')
274 if version_ge "$curr_ver" "$req_ver"; then262 if version_ge "$curr_ver" "$req_ver"; then
275- echo "CMake安装成功($curr_ver"263+ echo "CMake installed successfully ($curr_ver)"
276 else264 else
277- echo "CMake版本仍不满足,请手动安装"265+ echo "CMake version still doesn't meet requirements, please install manually"
278 exit 1266 exit 1
279 fi267 fi
280 else268 else
281- echo "CMake安装失败"269+ echo "CMake installation failed"
282 exit 1270 exit 1
283 fi271 fi
284}272}
285 273 
286install_pigz() {274install_pigz() {
287- # pigz版本号>=2.4275+ # pigz version >= 2.4
288- echo -e "\n==== 检查pigz ===="276+ echo -e "\n==== Checking pigz ===="
289 local req_ver="2.4"277 local req_ver="2.4"
290 local curr_ver=""278 local curr_ver=""
291 279 
292 if command -v pigz &> /dev/null; then280 if command -v pigz &> /dev/null; then
293 curr_ver=$(pigz --version 2>&1 | awk '{print $2}')281 curr_ver=$(pigz --version 2>&1 | awk '{print $2}')
294- echo "当前pigz版本: $curr_ver"282+ echo "Current pigz version: $curr_ver"
295 if version_ge "$curr_ver" "$req_ver"; then283 if version_ge "$curr_ver" "$req_ver"; then
296- echo "pigz满足要求"284+ echo "pigz meets requirements"
297 return285 return
298 fi286 fi
299 fi287 fi
300 288 
301- read -p "安装pigz[Y/n] " -n 1 -r289+ read -p "Install pigz? [Y/n] " -n 1 -r
302 echo290 echo
303 if [[ ! $REPLY =~ ^[Yy]$ ]]; then291 if [[ ! $REPLY =~ ^[Yy]$ ]]; then
304- echo "跳过pigz安装"292+ echo "Skipping pigz installation"
305 return293 return
306 fi294 fi
307 295 
308- echo "安装pigz..."296+ echo "Installing pigz..."
309 case "$OS" in297 case "$OS" in
310- debian|rhel|euler)298+ debian|rhel)
311 run_command sudo $PKG_MANAGER install -y pigz299 run_command sudo $PKG_MANAGER install -y pigz
312 ;;300 ;;
313 macos)301 macos)
@@ -317,23 +305,23 @@ install_pigz() {
317 305 
318 if command -v pigz &> /dev/null; then306 if command -v pigz &> /dev/null; then
319 curr_ver=$(pigz --version 2>&1 | awk '{print $2}')307 curr_ver=$(pigz --version 2>&1 | awk '{print $2}')
320- echo "pigz安装成功($curr_ver"308+ echo "pigz installed successfully ($curr_ver)"
321 else309 else
322- echo "pigz安装失败,可忽略"310+ echo "pigz installation failed, can be ignored"
323 fi311 fi
324}312}
325 313 
326install_dos2unix() {314install_dos2unix() {
327- echo -e "\n==== 检查dos2unix ===="315+ echo -e "\n==== Checking dos2unix ===="
328 316 
329 if command -v dos2unix &> /dev/null; then317 if command -v dos2unix &> /dev/null; then
330- echo "dos2unix已安装"318+ echo "dos2unix has been installed"
331 return319 return
332 fi320 fi
333 321 
334- echo "安装dos2unix..."322+ echo "Installing dos2unix..."
335 case "$OS" in323 case "$OS" in
336- debian|rhel|euler)324+ debian|rhel)
337 run_command sudo $PKG_MANAGER install -y dos2unix325 run_command sudo $PKG_MANAGER install -y dos2unix
338 ;;326 ;;
339 macos)327 macos)
@@ -342,16 +330,81 @@ install_dos2unix() {
342 esac330 esac
343 331 
344 if command -v dos2unix &> /dev/null; then332 if command -v dos2unix &> /dev/null; then
345- echo "dos2unix安装成功"333+ echo "dos2unix installed successfully"
346 else334 else
347- echo "dos2unix安装失败"335+ echo "dos2unix installation failed"
336+ exit 1
337+ fi
338+}
339+ 
340+install_googletest() {
341+ # Recommended googletest version: release-1.11.0
342+ echo -e "\n==== Checking googletest ===="
343+ local req_ver="1.11.0"
344+ local curr_ver=""
345+ local gtest_src_dir="/usr/src/gtest"
346+ 
347+ if pkg-config --exists gtest; then
348+ curr_ver=$(pkg-config --modversion gtest)
349+ echo "Current googletest version: $curr_ver"
350+ if version_ge "$curr_ver" "$req_ver"; then
351+ echo "googletest meets requirements"
352+ return
353+ fi
354+ fi
355+ read -p "Install googletest? [Y/n] " -n 1 -r
356+ echo
357+ if [[ ! $REPLY =~ ^[Yy]$ ]]; then
358+ echo "Skipping googletest installation"
359+ return
360+ fi
361+ 
362+ echo "Installing googletest..."
363+ case "$OS" in
364+ debian)
365+ # Install libgtest-dev
366+ run_command sudo $PKG_MANAGER install -y libgtest-dev
367+ # Check if gtest source directory exists
368+ if [ ! -d "$gtest_src_dir" ]; then
369+ echo "googletest source directory not found: $gtest_src_dir"
370+ echo "Attempting to reinstall libgtest-dev..."
371+ run_command sudo $PKG_MANAGER purge -y libgtest-dev
372+ run_command sudo $PKG_MANAGER install -y libgtest-dev
373+ # Check directory again
374+ if [ ! -d "$gtest_src_dir" ]; then
375+ echo "Still cannot find $gtest_src_dir, please install manually:"
376+ echo "1. Download source: wget https://github.com/google/googletest/archive/refs/tags/release-1.11.0.tar.gz"
377+ echo "2. Extract and compile: tar -zxf release-1.11.0.tar.gz && cd googletest-release-1.11.0 && cmake . && make && sudo make install"
378+ exit 1
379+ fi
380+ fi
381+ # Force cmake execution in gtest source directory (even if cd fails)
382+ echo "Entering $gtest_src_dir to compile..."
383+ run_command sudo cmake -S "$gtest_src_dir" -B "$gtest_src_dir/build"
384+ run_command sudo make -C "$gtest_src_dir/build"
385+ run_command sudo cp "$gtest_src_dir/build/lib/"*.a /usr/lib
386+ ;;
387+ rhel)
388+ run_command sudo $PKG_MANAGER install -y gtest gtest-devel
389+ ;;
390+ macos)
391+ run_command brew install googletest
392+ echo 'export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"'
393+ ;;
394+ esac
395+ 
396+ if pkg-config --exists gtest; then
397+ curr_ver=$(pkg-config --modversion gtest)
398+ echo "googletest installed successfully ($curr_ver)"
399+ else
400+ echo "googletest installation failed"
348 exit 1401 exit 1
349 fi402 fi
350}403}
351 404 
352main() {405main() {
353 echo "===================================================="406 echo "===================================================="
354- echo "开始安装项目依赖"407+ echo "Starting project dependency installation"
355 echo "===================================================="408 echo "===================================================="
356 409 
357 detect_os410 detect_os
@@ -361,9 +414,10 @@ main() {
361 install_cmake414 install_cmake
362 install_pigz415 install_pigz
363 install_dos2unix416 install_dos2unix
417+ install_googletest
364 418 
365 echo -e "===================================================="419 echo -e "===================================================="
366- echo "所有依赖安装完成!"420+ echo "All dependencies installed successfully!"
367 echo "===================================================="421 echo "===================================================="
368}422}
369 423 
Mrequirements.txt+6-1
@@ -1 +1,6 @@
1-pyyaml1+pyyaml
2+setuptools>=59.0.0
3+wheel>=0.37.0
4+decorator
5+sympy
6+attrs
Mtests/requirements.txt+7-1
@@ -1 +1,7 @@
1-tensorflow==2.20.01+tensorflow==2.20.0
2+numpy
3+decorator
4+sympy
5+scipy
6+attrs
7+psutil