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即可。

distribution was not found and is required by the application错误相关推荐

  1. pkg_resources.DistributionNotFound: distribution was not found and is required by the application

    ubuntu16.04 修改默认 python 为 anaconda3 后 supervisor.service 报如下错误 Oct 11 09:06:37 zhangyinglong-PC syst ...

  2. 错误:The ‘pycocotools>=2.0‘ distribution was not found and is required by the application

    问题1: The 'pycocotools>=2.0' distribution was not found and is required by the application Windows ...

  3. Expected required, optional, or repeated.错误解决方法

    Expected "required", "optional", or "repeated".错误解决方法 编译Protobuf 库,出现如 ...

  4. Qt: error: lvalue required as unary ‘‘ operand错误解决

    在写代码时,想对函数进行取值操作,就用了"&"符号进行取值操作,结果报了一个"Qt: error: lvalue required as unary '& ...

  5. missing required icon file.图标错误解决

    为什么80%的码农都做不了架构师?>>>    最新的ios7需要额外的这三个尺寸的icon,'120x120','76x76','152x152' 没有报错missing requ ...

  6. 在学习django时,出现__init__() missing 1 required positional argument: ‘on_delete‘错误

    bug处理 学习django时,创建两张表,并设置其中一张表的某一属性为外键,在进行构建迁移文件时,出现__init__() missing 1 required positional argumen ...

  7. centOS6.5 安装 python2.7 pip

    目前大部分用户使用的CentOS6.5上默认的Python还是2.6版本.升级到Python2.7碰到很多问题.本文将介绍如何安装Python2.7. 安装python 依赖包: yum instal ...

  8. pip: command not found 一系列报错

    #安装python2.7版本 tar xvf Python-2.7.9.tar.xz cd Python-2.7.9 ./configure --prefix=/usr/bin/python2.7 m ...

  9. 关于centos6升级python3.6无法使用pip的问题

    用find / -name "pip",也找不到类似/usr/bin/pip类似的命令,说明pip没安装好,那么运行下面的命令 yum install python-pip 然后可 ...

最新文章

  1. Linux目录是否是否为空,在Linux上使用C检查目录是否为空
  2. 【文化传承】念念不忘 必有回响
  3. MySQL中的视图操作
  4. css布局,让侧边栏高度撑满,并且不会随着屏幕内容滚动
  5. pythonmax对字符_(MAX第五篇)Python--字符串操作(三)
  6. HAproxy Json日志格式配置
  7. 02.生成、打包、部署和管理应用程序及类型
  8. vector和list容器有哪些区别
  9. 前端学习(1734):前端系列javascript之发行
  10. 助AI研究社群发出内建18种预先训练模型工具
  11. 需要写的一些pycoe
  12. 坚守普惠 AI,看华为云如何让 AI 落地!
  13. 碎阅:一款基于douban及ONE API开发的资讯类App
  14. java常用快捷键 智能提示 及快捷键冲突
  15. paip.java OutOfMemoryError 解决方法o33
  16. 【图像融合】基于matlab高斯金字塔+拉普拉斯金字塔彩色水下图像融合【含Matlab源码 1629期】
  17. Windows系统设置定时自动重启服务程序
  18. 福大软工 · 真 · 最终作业
  19. Swin Transformer理论讲解
  20. 复盘总结笔记-吴志华老师讲座

热门文章

  1. 有人说找不到这个免费R绘图教程的数据在哪?
  2. P1866 编号 python
  3. 关于Chrome字体模糊解决方案
  4. Java笔记-AES加解密(PKCS7padding可用)
  5. 软考网络工程师笔记-综合知识1
  6. Web笔记-通过版本号控制客户端浏览器中的缓存
  7. C++设计模式-开放-封闭原则基本概念与实例
  8. C++设计模式-单例模式理论与实例
  9. Qt文档阅读笔记-QGraphicsEffect::draw(QPainter *painter)官方解析与实例
  10. Qt工作笔记-右键菜单造成内存泄漏等分析