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 &