1.安装yum-utils

yum install yum-utils

2.安装yum-builddep

yum-builddep python

3.下载Python压缩包

wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz

4.解压

tar xf Python-3.7.0.tgz

5.配置,编辑,安装

cd Python-3.7.0

./configure

make

make install

6.安装相关模块

pip3 install 模块名

7.编写xx.py文件

8.执行xx.py文件

python3 xx.py

nohup python3 -u xx.py > xx.log 2>&1 &