当前位置:   article > 正文

distribution was not found and is required by the application错误_he 'webrtcvad' distribution was not found and is r

he 'webrtcvad' distribution was not found and is required by the application

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

  1. Oct 11 09:06:37 zhangyinglong-PC systemd[1]: supervisor.service: Service hold-off time over, scheduling restart.
  2. Oct 11 09:06:37 zhangyinglong-PC systemd[1]: Stopped Supervisor process control system for UNIX.
  3. Oct 11 09:06:37 zhangyinglong-PC systemd[1]: Started Supervisor process control system for UNIX.
  4. Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]: Traceback (most recent call last):
  5. Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]: File "/usr/bin/supervisord", line 5, in <module>
  6. Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]: from pkg_resources import load_entry_point
  7. 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>
  8. Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]: @_call_aside
  9. 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
  10. Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]: f(*args, **kwargs)
  11. 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
  12. Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]: working_set = WorkingSet._build_master()
  13. 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
  14. Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]: ws.require(__requires__)
  15. 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
  16. Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]: needed = self.resolve(parse_requirements(requirements))
  17. 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
  18. Oct 11 09:06:37 zhangyinglong-PC supervisord[13088]: raise DistributionNotFound(req, requirers)
  19. 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即可。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/215942
推荐阅读
相关标签
  

闽ICP备14008679号