日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發布時間:2025/3/15 编程问答 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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 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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。