WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advi
I faced the same issue but on Windows. Reinstalling pip worked for me. You can force a reinstall of pip with:
pip
python -m pip install --upgrade --force-reinstall pip