The above command would invoke the local environment under Python310 and pip would install tornado to Lib\site-packages
Pip and self-updates
pip can be invoked both as both a python module by using python -m pip and externally as pip.exe or pip3.exe. Examples:
python.exe pip.exe install sentencepiece
python.exe pip3.exe install sentencepiece
python.exe -m pip install sentencepiece
The command to update pip starts with python -m pip which invokes pip as a python module in order to update the pip.exe on the file system. However, the file system version, pip.exe, cannot cannot be used to update itself since the file is locked while in use. The following will fail:
python pip.exe install --upgrade pip
In other words, pip.exe is not actually needed to manage Python library versions because the module version is always available as python -m pip or to manage