1.更新系统
yum update
2.启用 EPEL 软件源
树莓派安装centos7.9(armv7hl)以及宝塔linux面板. 2023-2-16_mklpo147的博客-CSDN博客
4.安装nano 和 wget 等工具或依赖
yum install -y gcc-c++ nano devtoolset-6-gcc devtoolset-6-gcc-c++ epel-release libcurl-devel wget tar gcc make zip unzip openssl openssl-devel gcc libxml2 libxml2-devel libxslt* zlib zlib-devel libjpeg-devel libpng-devel libwebp libwebp-devel freetype freetype-devel lsof pcre pcre-devel ntp crontabs icu libicu-devel c-ares libffi-devel bzip2-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel qrencode
5.下载,修改,安装 脚本
下载最新版安装脚本
wget -O install.sh http://download.bt.cn/install/install_6.0.sh
或者
wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh
修改脚本
删除红框中的内容(可能会有多处)
执行安装脚本
bash install.sh
或
sh install.sh
sh install_panel.sh
bash install_panel.sh
6. python主程序编译安装后的默认源是阿里源,因为缺失armv7hl的原因编译安装模块会很慢:
(1)建议将pip 默认源设置为 piwheels - Simple index 可以提高安装速度: (仅限armv7hl构架,其它构架不建议使用)
命令行:
/www/server/panel/pyenv/bin/python3.7 -m pip config set global.index-url https://www.piwheels.org/simple
(2)编辑pip源 :
nano /root/.config/pip/pip.conf
范例:
[global]
index-url = https://www.piwheels.org/simple
extra-index-url=https://pypi.mirrors.ustc.edu.cn/simple