- 在python3.7.8文件夹中创建一个build_python.sh,内容如下
#!/bin/bash
mkdir arm_build
cd arm_build
echo ac_cv_file__dev_ptmx=yes > config.site
echo ac_cv_file__dev_ptc=yes >> config.site
export CONFIG_SITE=config.site
mkdir install_python
arm_install=/home/xxh/work/python/Python-3.7.8/arm_build/install_python
../configure --host=arm-linux-gnueabihf --build