安装supervisor使用的时候报错,信息如下
web:~# supervisorctl status
/usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
************************************************************
You are running Setuptools on Python 2, which is no longer
supported and
>>> SETUPTOOLS WILL STOP WORKING <<<
in a subsequent release (no sooner than 2020-04-20).
Please ensure you are installing
Setuptools using pip 9.x or later or pin to `setuptools<45`
in your environment.
If you have done those things and are still encountering
this message, please comment in
https://github.com/pypa/setuptools/issues/1458
about the steps that led to this unsupported combination.
************************************************************
sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60)
解决办法:
卸载重装 pip、setuptools、wheel,使它们回到与系统 python 相适应的版本
python3参考:
python3 -m pip uninstall pip setuptools wheel
sudo apt-get --reinstall install python3-setuptools python3-wheel python3-pip
python2参考:
python -m pip uninstall pip setuptools wheel
sudo apt-get --reinstall install python-setuptools python-wheel python-pip
更多信息参考:https://blog.csdn.net/qq_40157728/article/details/105521474