You are not logged in.
pip install sentencepiece
This command results in
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
python-xyz', where xyz is the package you are trying to
install.
If you wish to install a non-Arch-packaged Python package,
create a virtual environment using 'python -m venv path/to/venv'.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.
If you wish to install a non-Arch packaged Python application,
it may be easiest to use 'pipx install xyz', which will manage a
virtual environment for you. Make sure you have python-pipx
installed via pacman.
Hence, I tried sudo pacman -S python-sentencepiece based on package name from https://aur.archlinux.org/packages/python-sentencepiece
Resulted in
error: target not found: python-sentencepiece
Offline
AUR packages are not in the repos itself and will not be directly installed by pacman, you'll have to acquire the PKGBUILD file and run makepkg to build and install the package. Read https://wiki.archlinux.org/title/Arch_User_Repository (and properly and thoroughly so you know the and are aware of the caveats of the AUR)
Moving to AUR issues...
Offline
How to know if the package is safe or not ?? Specifically what to look at .....
Offline
Whether it downloads from a fishy source or the packaging/install operations do something weird (like creating files that have no business being there or touching things outside of the packages expected context) FWIW the PKGBUILD for sentencepiece looks fairly simple and doesn't seem to be doing anything out of the ordinary, i.e. I'd consider it safe.
Offline