An error is reported when installing supervisor. The information is as follows
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)
Solution:
uninstall and reinstall pip, setuptools and wheel to return them to the version corresponding to the system Python
python3 reference:
python3 -m pip uninstall pip setuptools wheel
sudo apt-get --reinstall install python3-setuptools python3-wheel python3-pip
Python2 reference:
python -m pip uninstall pip setuptools wheel
sudo apt-get --reinstall install python-setuptools python-wheel python-pip
Read More:
- Command “/usr/bin/python -u -c “import setuptools, tokenize;__file__=‘/tmp/pip-cus9V0-build/setup.py
- Chromdriver Install error: File “C:\python37\lib\site-packages\selenium\webdriver\common\service.py”, line 76, in start stdin=PIPE) File…
- How to Solve Python WARNING: Ignoring invalid distribution -ip (e:\python\python_dowmload\lib\site-packages)
- [Solved] Command “python setup.py egg_info” failed with error code 1
- [Solved] Ubuntu18.04 Install pyqt5 error: Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-92
- Opencv-python Install is Stuck Error: running setup.py bdist_wheel for opencv-python
- MAC OS install python3 Error: Permission denied @ dir_s_mkdir-/usr/local/Frameworks
- [Solved] command “python setup.py egg_info“ failed with error code 1
- Python Fatal error: Py_Initialize: unable to load the file system codec
- Linux Fatal Python error: Py_Initialize Unable to get the locale encoding
- Pychar can’t connect to Python console, but it can run. Py file, and Anaconda’s command line can run Python command
- Pip3 install Mysqlclient Error: Command “python setup.py egg_info“ failed with error
- Python pyqt5 ui Generate .py File Error [How to Solve]
- [Solved] Python setup.py install Error: error: identifier “AT_CHECK“ is undefined
- Python installs virtualenv through PIP and always reports an error: response.py“, line 438, in _error_catcher yield
- [Solved] Run sudo python setup.py install Error: error: error in setup.cfg: command ‘build‘ has no such option ‘i18
- onnx error: ImportError: /home/dy/anaconda3/envs/torch/lib/python3.6/site-packages/onnx…
- [zipfile] Python packages files as zip packages & decompresses them
- Mac Upgrade pip Error OSError: [Errno 13] Permission denied: ‘/Library/Python/2.7/site-packages/pip-9.0.1-py2….