I can install a local package as below:
....,root,root # /usr/bin/pip3 install PyYAML-5.3.tar.gz WARNING: Running pip install with root privileges is generall