目录

Pkg_resources.DistributionNotFound:The Supervisor==3.4

报错

pkg_resources.DistributionNotFound: The 'supervisor==3.4.0' distribution was not found and is required by the application

原因

1
通过yum命令直接安装的supervisor只支持python2版本,所以python版本不兼容,改掉python版本即可
注意
执行哪个文件报错,改那个文件的python版本

解决

1
vim /bin/echo_supervisord_conf    #这里的echo_supervisord_conf文件是我需要执行的
1
2
3
4
#!/usr/bin/python   --->    改为    #!/usr/bin/python2


:wq 
注意
echo_supervisord_conf需要替换成你执行命令后报错的文件