How to install pip on Synology NAS

On Synology DSM v7, python3 is installed but pip in not installed by default:

$ pip
-sh: pip: command not found

But it’s easy to install. You just need to run this once:

python3 -m ensurepip