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

pkg_resources.DistributionNotFound: 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

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

  2. distribution was not found and is required by the application错误

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

  3. pyinstaller打包torch出现OSError: could not get source code、pkg_resources.DistributionNotFound

    记下主要怕以后自己忘记 首先打包先建一个虚拟环境,就装上打包的python需要的包,这样打包起来错误可能会少点,而且速度也会快些,大小也可能小些,如何创建可以参考我的另一篇博客https://blog ...

  4. twine上传的坑:pkg_resources.DistributionNotFound: The ‘docutils>=0.13.1‘ distribution was not found

    twine上传的坑:pkg_resources.DistributionNotFound: The 'docutils>=0.13.1' distribution was not found 一 ...

  5. 【原】执行nosetests 报错:pkg_resources.DistributionNotFound: nose==0.10.4

    我的系统是centos6.3,安装好nose1.3.4之后,执行nosetests,提示异常如下: 1 # nosetests 2 Traceback (most recent call last): ...

  6. 分布式 TensorFlow:Distribution Strategy API 丨Google 开发者大会 2018

    Google 开发者大会 (Google Developer Days,简称 GDD) 是展示 Google 最新开发者产品和平台的全球盛会,旨在帮助你快速开发优质应用,发展和留住活跃用户群,充分利用 ...

  7. 黄聪:Microsoft Enterprise Library 5.0 系列教程(二) Cryptography Application Block (高级)

    原文:黄聪:Microsoft Enterprise Library 5.0 系列教程(二) Cryptography Application Block (高级) 本章介绍的是企业库加密应用程序模块 ...

  8. Python2.7安装ncmbot时提示:Microsoft Visual C++9.0 is required

    场景 Python 2.7 安装ncmbot时提示: Microsoft Visual C++9.0 is required 实现 访问: https://www.microsoft.com/zh-c ...

  9. 【ujson】pip安装ujson报错: error:Microsoft Visual C++ 14.0 is required

    在win10上pip安装ujson报错 在使用pip安装依赖包ujson时,遇到了问题,如下:  building 'ujson' extension     error: Microsoft Vis ...

最新文章

  1. Python 的练手项目有哪些值得推荐?
  2. 又一款4800像素手机曝光:vivo V15 Pro
  3. 【DIY】入门必看:arduino入门实用教程,esp8266获取互联网时间,nodemcu制作NTP客户端获取显示互联网时间...
  4. sit是什么环境_软件环境常识 --dev sit uat
  5. 移动端向上滑动整个屏幕
  6. 算法 python_最全 Python 算法实现资源汇总!
  7. Java面试中如何介绍自己的项目经验?
  8. 金九银十,23届秋招信息超全汇总表!各大名企优质岗位持续更新中···
  9. C语言中如何求三角形最大正弦值,余弦定理求三角形面积
  10. 《循序渐进Oracle:数据库管理、优化与备份恢复》一一1.5 案例与实践分析 ...
  11. Torch 论文复现:卷积注意力模块 CBAM
  12. MSP430F149利用JTAG以及BSL下载配置图解!
  13. 你学了多久 Python 并能正式工作?
  14. 一家化工厂的数字化三级跳 | 产研案例
  15. 面向医学图像分析的深度学习研究方案
  16. RK3568平台开发系列讲解(GNSS篇)GNSS介绍
  17. 君澜酒店集团2019年度待开业“景澜”品牌酒店发布
  18. od重新下载与crackme005记录
  19. matlab吃cpu还是显卡_在GPU上运行MATLAB程序
  20. 建站助手搭建php网站,【产品】特网科技建站助手一键配置PHP环境

热门文章

  1. 结束十年科学争论,张辰宇团队阐明食物miRNA被胃吸收的分子机制,miRNA跨界调控再添力证...
  2. python打开xml文件报错:UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xb7 in position 58: illegal multi
  3. php 获取object_PHP反射机制实现自动依赖注入
  4. 程序员之常用软件安装过程记录
  5. python数组追加_python向数组追加数据库
  6. 电脑硬件知识学习_电脑故障小知识自己动手不再花冤枉钱
  7. 向前欧拉公式例题_干货丨阅读理解答题万能公式,语文考试高分秘籍!
  8. PythonRabbitmq文档阅读笔记-生产者数据直接送入队列消费者消费
  9. yml的基本语法,以及java读取yml文件
  10. C++工作笔记-作用域( :: )的另一种玩法