You pin a package with pipx pin package-name
.
Example: Installing csvkit
version 2.0.0. The most recent version is 2.0.1, so I want to pin it to 2.0.0 to prevent it from upgrading.
$ pipx install csvkit==2.0.0
installed package csvkit 2.0.0, installed using Python 3.12.3
These apps are now globally available
- csvclean
- csvcut
- csvformat
- csvgrep
- csvjoin
- csvjson
- csvlook
- csvpy
- csvsort
- csvsql
- csvstack
- csvstat
- in2csv
- sql2csv
Note: '/home/myself/.local/bin' is not on your PATH environment variable. These apps will not be
globally accessible until your PATH is updated. Run `pipx ensurepath` to automatically add it, or
manually modify your PATH in your shell's config file (e.g. ~/.bashrc).
done! 🌟
$ pipx pin csvkit
$ pipx upgrade-all
Not upgrading pinned package csvkit. Run `pipx unpin csvkit` to unpin it.