CentOS-6.10 install python2.7.16

CentOS 6

  1. Enable the Software Collections Library:
    sudo yum install centos-release-scl
  2. Install the Software Collections utilities:
    sudo yum install scl-utils
  3. Install Python 2.7:
    sudo yum install python27
  4. Verify that Python 2.7 is installed:
    source /opt/rh/python27/enable
    python --version

猜你喜欢

转载自www.cnblogs.com/guohui-dev/p/11890549.html