解决 The 'supervisor==3.2.0' distribution was not found and is required by the application错误

ubuntu16.04 修改默认 python 为 anaconda3 后 supervisor.service 报如下错误

Oct 11 09:06:37 zhangyinglong-PC systemd[1]: supervisor.service: Service hold-off time over, scheduling restart.
Oct 11 09:06:37 zhangyinglong-PC systemd[1]: Stopped Supervisor process control system for UNIX.
Oct 11 09:06:37 zhangyinglong-PC systemd[1]: Started Supervisor process control system for UNIX.
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]: Traceback (most recent call last):
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:   File "/usr/bin/supervisord", line 5, in <module>
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:     from pkg_resources import load_entry_point
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:   File "/opt/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3105, in <module>
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:     @_call_aside
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:   File "/opt/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3089, in _call_aside
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:     f(*args, **kwargs)
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:   File "/opt/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3118, in _initialize_master_working_set
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:     working_set = WorkingSet._build_master()
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:   File "/opt/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 578, in _build_master
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:     ws.require(__requires__)
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:   File "/opt/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 895, in require
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:     needed = self.resolve(parse_requirements(requirements))
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:   File "/opt/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 781, in resolve
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]:     raise DistributionNotFound(req, requirers)
Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]: pkg_resources.DistributionNotFound: The 'supervisor==3.2.0' distribution was not found and is required by the application

和terminator一样也是python版本引起的,编辑/usr/bin/supervisord将#!/usr/bin/python修改为#!/usr/bin/python2即可。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值