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即可。
distribution was not found and is required by the application错误相关推荐
- 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 ...
- 错误: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 ...
- Expected required, optional, or repeated.错误解决方法
Expected "required", "optional", or "repeated".错误解决方法 编译Protobuf 库,出现如 ...
- Qt: error: lvalue required as unary ‘‘ operand错误解决
在写代码时,想对函数进行取值操作,就用了"&"符号进行取值操作,结果报了一个"Qt: error: lvalue required as unary '& ...
- missing required icon file.图标错误解决
为什么80%的码农都做不了架构师?>>> 最新的ios7需要额外的这三个尺寸的icon,'120x120','76x76','152x152' 没有报错missing requ ...
- 在学习django时,出现__init__() missing 1 required positional argument: ‘on_delete‘错误
bug处理 学习django时,创建两张表,并设置其中一张表的某一属性为外键,在进行构建迁移文件时,出现__init__() missing 1 required positional argumen ...
- centOS6.5 安装 python2.7 pip
目前大部分用户使用的CentOS6.5上默认的Python还是2.6版本.升级到Python2.7碰到很多问题.本文将介绍如何安装Python2.7. 安装python 依赖包: yum instal ...
- 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 ...
- 关于centos6升级python3.6无法使用pip的问题
用find / -name "pip",也找不到类似/usr/bin/pip类似的命令,说明pip没安装好,那么运行下面的命令 yum install python-pip 然后可 ...
最新文章
- Linux目录是否是否为空,在Linux上使用C检查目录是否为空
- 【文化传承】念念不忘 必有回响
- MySQL中的视图操作
- css布局,让侧边栏高度撑满,并且不会随着屏幕内容滚动
- pythonmax对字符_(MAX第五篇)Python--字符串操作(三)
- HAproxy Json日志格式配置
- 02.生成、打包、部署和管理应用程序及类型
- vector和list容器有哪些区别
- 前端学习(1734):前端系列javascript之发行
- 助AI研究社群发出内建18种预先训练模型工具
- 需要写的一些pycoe
- 坚守普惠 AI,看华为云如何让 AI 落地!
- 碎阅:一款基于douban及ONE API开发的资讯类App
- java常用快捷键 智能提示 及快捷键冲突
- paip.java OutOfMemoryError 解决方法o33
- 【图像融合】基于matlab高斯金字塔+拉普拉斯金字塔彩色水下图像融合【含Matlab源码 1629期】
- Windows系统设置定时自动重启服务程序
- 福大软工 · 真 · 最终作业
- Swin Transformer理论讲解
- 复盘总结笔记-吴志华老师讲座