From e3a2f11d02a193fc9eef792184658290919a2f2b Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 4 Dec 2022 18:11:17 -0500 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=AE=89=E8=A3=85python3=20?= =?UTF-8?q?=E6=97=A0=E9=9C=80=E5=88=A4=E6=96=ADpython3=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=EF=BC=8C=E5=A6=82=E6=9E=9C=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=EF=BC=8C=E5=88=99apt=E4=BC=9A=E8=87=AA=E5=8A=A8=E7=95=A5?= =?UTF-8?q?=E8=BF=87=EF=BC=8C=E4=B8=8D=E5=AD=98=E5=9C=A8=E5=88=99=E5=AE=89?= =?UTF-8?q?=E8=A3=85python3=E6=9C=80=E6=96=B0=E5=8F=91=E5=B8=83=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install_ubuntu.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/install_ubuntu.sh b/install_ubuntu.sh index 3e4dcb7b..8796fcec 100755 --- a/install_ubuntu.sh +++ b/install_ubuntu.sh @@ -1,25 +1,16 @@ #!/usr/bin/env bash -python3 --version 2 > /dev/null || { - echo "Python3 not installed. Please install Python before running the installation script." - exit 1 -} - -python3 -m pip list > /dev/null || { - echo "Installing pip." - sudo apt install python3-pip -y -} - sudo apt update sudo apt upgrade -y -sudo apt install gcc git libncurses5-dev gcc-arm-none-eabi binutils-arm-none-eabi gdb-multiarch qemu qemu-system-arm -y +sudo apt install python3 python3-pip gcc git libncurses5-dev gcc-arm-none-eabi binutils-arm-none-eabi gdb-multiarch qemu qemu-system-arm -y python3 -m pip install scons requests url=https://raw.githubusercontent.com/RT-Thread/env/master/touch_env.sh if [ $1 ] && [ $1 = --gitee ]; then url=https://gitee.com/RT-Thread-Mirror/env/raw/master/touch_env.sh fi + wget $url -O touch_env.sh chmod 777 touch_env.sh ./touch_env.sh $@