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 &