在使用supervisor前遇到一些问题,启动时提示
pkg_resources.DistributionNotFound: The 'supervisor==3.3.5' distribution was not found and is required by the application
这是因为我通过apt-get 安装的,是python2使用,但是我的是python3
先检查git是否已经安装
git --version
如果没安装就使用
apt-get install git
然后安装supervisor
pip3 install git+https://github.com/Supervisor/supervisor
这时候检查pip list就可以看见已经安装好啦
下面链接是supervisor具体的设置