1.安裝yum-utilspython
yum install yum-utilside
2.安裝yum-builddepui
yum-builddep pythonip
3.下載Python壓縮包get
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgzit
4.解壓pip
tar xf Python-3.7.0.tgzclass
5.配置,編輯,安裝ftp
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 &