To install Python 37 run the command below, if you have it already installed you can skip this step.
pkg install python37
To install Pip package installer, recommended by the PyPA simply run the command below
pkg install py37-pip
The command above will install Pip for Python 3.7.
Now you can install packages by running
pip install for example:
pip install flask