解決 The ‘supervisor==3.2.0‘ 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即可。
相關文章
- 解決shell指令碼錯誤$’r’ command not found指令碼
- supervisor使用報錯解決
- 真機除錯出現 application installation failed 錯誤 解決方案除錯APPAI
- Newline required at end of file but not foundUI
- windows10,homestead啟動時,VERR_INTNET_FLT_IF_NOT_FOUND 錯誤解決Windows
- Ocelot錯誤解決
- 小程式錯誤:Component is not found in path
- Spring Boot配置是遇到錯誤:jdbcUrl is required with driverClassNameSpring BootJDBCUI
- iOS上傳App Store報錯:no suitable application records were foundiOSAPPUI
- 解決 Python UnicodeEncodeError 錯誤PythonUnicodeError
- 使用命令登入harbor報錯authentication required解決方法UI
- @Autowired 注入 **required a single bean, but 2 were found**UIBean
- 什麼是407 Proxy Authentication Required錯誤程式碼?UI
- pod install命令後tool 'xcodebulid' required Xcode...錯誤XCodeUI
- /system/bin/sh: screenrecord: inaccessible or not found 報錯解決方案
- gevent安裝錯誤解決方案:Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"ROSC++UI
- dbfread報錯ValueError錯誤解決方法Error
- PbootCMS 404 錯誤解決方法boot
- Linux下錯誤解決方案Linux
- latex 錯誤以及解決方案
- Eclipse 啟動專案錯誤:class not foundEclipse
- HTTP 錯誤 500.19- Internal Server Error 錯誤解決方法HTTPServerError
- steam磁碟寫入錯誤怎麼解決 steam磁碟寫入錯誤解決方法大全
- Supervisor 解決 can't find command *
- dedecms提示500錯誤解決方法
- 解決java.lang.NoSuchMethodError錯誤JavaError
- HTTP代理錯誤怎麼解決?HTTP
- SAXParseException的錯誤解決之二Exception
- ORA-28000錯誤解決方案
- undefined reference to錯誤的解決方法Undefined
- Cocopods的升級錯誤解決
- ORA-12005 錯誤的解決
- PHP curl error 60 錯誤解決PHPError
- linux解決“XXX is not in the sudoers file”錯誤Linux
- shell指令碼執行錯誤 $‘\r‘:command not found指令碼
- TCP網路除錯助手提示錯誤:“1035:未知錯誤” 解決方案TCP除錯
- npm報錯"A complete log of this run can be found in:"的解決辦法NPM
- react-native install 報錯 No git binary found in $PATH解決方法ReactGit