You are not logged in.

#1 2024-02-15 19:25:19

grotesqueimpalement
Member
Registered: 2024-02-04
Posts: 18

Unable to install python wrapper library - sentencepiece

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

#2 2024-02-15 19:32:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,771

Re: Unable to install python wrapper library - sentencepiece

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

#3 2024-02-16 13:00:44

grotesqueimpalement
Member
Registered: 2024-02-04
Posts: 18

Re: Unable to install python wrapper library - sentencepiece

How to know if the package is safe or not ?? Specifically what to look at .....

Offline

#4 2024-02-16 13:23:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,771

Re: Unable to install python wrapper library - sentencepiece

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

Board footer

Powered by FluxBB