You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a documentation issue (in my opinion) - having tried a few ways, I couldn't find a convenient command to call a --user installation of pipx as root.
Therefore, the remedial steps I would take here are
add a clause to the existing "pip --user" installation example in the README making clarifying that --user installations won't work for installing applications system-wide
add a "pip -H (not recommended)" installation example to the README
provide instructions for manually creating a 'managed by pipx'-like environment for pipx
The text was updated successfully, but these errors were encountered:
Lordfirespeed
changed the title
sudo pipx does not work when pipx is installed with pip --user
[docs]: sudo pipx does not work when pipx is installed with pip --userOct 11, 2024
Here's what I did to install pipx system-wide on a generic linux machine.
I chose to create a user for it because I wanted to use pipenv to simplify the update process, but one could just as easily skip that whole bit and install pipx into the venv with pip with /opt/pipx-cli owned by root.
sudo adduser pipx-cli --group --system --disabled-password --home /opt/pipx-cli --shell /bin/bash - create
a new user pipx-cli to manage pipx-cli
export GLOBIGNORE=".:.." to ignore the special names ., .. from Bash glob results
sudo cp /etc/skel/.* /opt/pipx-cli - /etc/skel is not used for system users, we have to do this ourselves
sudo chown -R pipx-cli:pipx-cli /opt/pipx-cli/ - files copied from /etc/skel are still owned by root
sudo chmod o+rx /opt/pipx-cli to enable read and execute perms to 'others' on pipx-cli's homedir
sudo -u pipx-cli -i - start a login shell as user pipx-cli
$ sudo pipx sudo: pipx: command not found
This is a documentation issue (in my opinion) - having tried a few ways, I couldn't find a convenient command to call a
--user
installation ofpipx
asroot
.Therefore, the remedial steps I would take here are
pip --user
" installation example in the README making clarifying that--user
installations won't work for installing applications system-widepip -H
(not recommended)" installation example to the READMEpipx
'-like environment forpipx
The text was updated successfully, but these errors were encountered: