1.报错原因 Centos自带的python版本为2.7, 升级后yum与高版本的python不兼容 2.解决方法 在终端输入: unset PYTHONPATH unset PYTHONHOME 错误消失: