[ks10-adv-os] name = Kylin Linux Advanced Server 10 - Os baseurl = https://update.cs2c.com.cn/NS/V10/V10SP3/os/adv/lic/base/$basearch/ gpgcheck = 1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-kylin enabled = 1
[ks10-adv-updates] name = Kylin Linux Advanced Server 10 - Updates baseurl = https://update.cs2c.com.cn/NS/V10/V10SP3/os/adv/lic/updates/$basearch/ gpgcheck = 1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-kylin enabled = 1
[ks10-adv-addons] name = Kylin Linux Advanced Server 10 - Addons baseurl = https://update.cs2c.com.cn/NS/V10/V10SP3/os/adv/lic/addons/$basearch/ gpgcheck = 1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-kylin enabled = 0
cd /usr/local/src wget https://www.python.org/ftp/python/2.7.17/Python-2.7.17.tgz tar -zxvf Python-2.7.17.tgz cd Python-2.7.17 ./configure --prefix=/usr/local/python2 make -j64 make install ln -s /usr/local/python2/bin/python2.7 /usr/local/bin/python2.7
安装 setuptools 工具
1 2 3 4 5 6
cd /usr/local/src wget https://github.com/pypa/setuptools/archive/v41.0.1.zip unzip setuptools-v41.0.1.zip cd setuptools-41.0.1 /usr/local/bin/python2.7 bootstrap.py /usr/local/bin/python2.7 setup.py install
安装 pip 工具
1 2 3 4 5
cd /usr/local/src wget https://github.com/pypa/pip/archive/19.2.2.tar.gz tar zxvf pip-19.2.2.tar.gz cd pip-19.2.2 /usr/local/bin/python2.7 setup.py install