卸载原来的cmake
yum remove cmake
安装pip
yum -y install epel-release yum install python-pip pip install --upgrade pip
用pip安装cmake
pip install cmake --upgrade
参考资料
https://stackoverflow.com/questions/49859457/how-to-reinstall-the-latest-cmake-version
https://www.jianshu.com/p/5220d12b15e3