Skip to content

Instantly share code, notes, and snippets.

@tzhvh
Last active May 16, 2022 12:03
Show Gist options
  • Save tzhvh/2dfe11e56e5d105b28f519c9b6bef339 to your computer and use it in GitHub Desktop.
Save tzhvh/2dfe11e56e5d105b28f519c9b6bef339 to your computer and use it in GitHub Desktop.
Fix pip install path issues
python3 -m pip install --user pipx
python3 -m pipx ensurepath

It might be tempting to just ask to use conda upon encountering these

Defaulting to user installation because normal site-packages is not writeable
  
  WARNING: The script userpath is installed in '/home/user/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Instead, use this workaround, and avoid spending time on conda or going through the trouble of editing bashrc. Sit back and let pipx do it on your behalf.

python3 -m pip install --user pipx
python3 -m pipx ensurepath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment