前言
本文主要给大家介绍了因Python升级导致yum、pip报错的解放方法,分享出来供大家参考学习,下面话不多说了,来一起看看详细的介绍吧。
原因:
yum是Python写的。服务器上Python版本过低,升级为2.7,而yum/pip未升级,导致在执行yum/pip时报这个错误。
yum报错:
There was a problem importing one of the Python modules
required to run yum. The error leading to
pip安装matplotlib
在centos6.5 64bit上用pip安装matplotlib时候报错:
* The following required packages can not be built:
* freetype, png
error: Setup scr ipt exited with 1
这是因为pip不能安装操作系统的依赖库导致的,需要用yum手动安装:
$ yum -y install freetype-devel libpng-deve
在centos7.3上yum安装了docker V1.13。1
但是在运行:docker run hello-world的时候报错:
# docker run docker.io/hello-world container_linux.go:247: starting container process caused “process_linux.go:258: applying cgroup configuration for process caused \”Cannot set pro
Error:Operation category READ is not supported in state standby
待机状态下不支持操作类别读取
错误原因:显示我的master处于standby状态
解决办法:1、检查namenode的状态,如果都处在standby状态,那就是自动故障迁移出现问题
安装系统插件:yum -y install psmisc
2、如果eclipse连接是node1,但是node2处于active状态
可以在Map/Reduce Locations中修改为