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 advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
https://github.com/pypa/pip/blob/38585adaecd88e386fe6fb434e37e4501a0cd45a/src/pip/_internal/utils/entrypoints.py#L10-L31