CentOS系统安装Python3环境

 

Here’s the table of contents:

  1. 安装Python3
  2. 安装pip工具
  3. 安装cypher包
  4. 执行Python文件
  5. CentOS后台运行Python

安装Python3

yum install python36

安装pip工具

sudo yum install python-pip
sudo pip3 install --upgrade pip

安装cypher包

pip3 install ipython-cypher
pip3 install pandas

执行Python文件

python3 test.py

CentOS后台运行Python

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