-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipx package in Ubuntu 24.04 is obsolete, how to properly upgrade to 1.6.0 #1481
Comments
On ubuntu 24.04
restart shell then try pipx from sudo
To Fix I continued with:
restart the shell
It all works far as I can tell. No issues with using pipx or upgrading it. Net effect is a way of installing/updating without editing a environment var, path, or rc file by hand... |
Hi everyone, I’ve created a backported version of pipx 1.6.0 for Ubuntu 24.04 LTS (Noble), addressing this issue and thos like [#1524](#1524) where You can find the backport (from official Ubuntu 24.10 sources) along with the compiled https://github.com/zinc75/pipx-1.6.0-backport-ubuntu-2404-lts What’s included:
Installation is straightforward with the If you fear I might have modified anything from sources (I've not), I've also put the recipe to compile it yourself in the README from the official Ubuntu sources. ✨ 🌟 ✨ Enjoy ! ✨ 🌟 ✨ Here’s some additional information about my environment and installation: $ uname -a
Linux proteus 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux Package details : $ apt-cache show pipx
Package: pipx
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 3442
Maintainer: Debian Python Team <[email protected]>
Architecture: all
Source: python-pipx
Version: 1.6.0-1
Depends: python3-venv, python3-argcomplete, python3-packaging, python3-platformdirs (>= 2.1), python3-tomli | python3-supported-min (>= 3.11), python3-userpath, python3:any
Description: execute binaries from Python packages in isolated environments
pipx allows you to...
.
* Run the latest version of a CLI application from a package
in a temporary virtual environment,
leaving your system untouched after it finishes.
* Install packages to isolated virtual environments,
while globally exposing their CLI applications
so you can run them from anywhere.
* Easily list, upgrade, and uninstall packages
that were installed with pipx.
.
pipx runs with regular user permissions,
never calling "sudo pip install".
Description-md5:
Homepage: https://github.com/pypa/pipx Verification : $ pipx --version
1.6.0 Test on --global option : $ sudo pipx ensurepath --global
[sudo] password for zinc:
/usr/local/bin is already in PATH.
⚠️ All pipx binary directories have been added to PATH. If you are sure you want to proceed, try again with the '--force' flag.
Otherwise pipx is ready to go! ✨ 🌟 ✨ Global install for cowsay : $ sudo pipx install --global cowsay
installed package cowsay 6.1, installed using Python 3.12.3
These apps are now globally available
- cowsay
done! ✨ 🌟 ✨ Everything seems fine. Hope this helps ! |
In my case I just want to install glances, I'm not a python developer, and I'm looking for a solution as simple as possible, to replicate it on all my new machines. (For ubuntu <24 I just did I don't like This is the best solution I found so far (all done as root): apt install pipx # Install 1.4
pipx install pipx # Install 1.7 in ~/.local/bin/
apt purge --autoremove pipx # Remove 1.4
~/.local/bin/pipx install --global pipx # Install 1.7 in /usr/local/bin/pipx
# logout and login again, then:
pipx uninstall pipx # Remove 1.7 from ~/.local/
ll ~/.local/bin/ # Make sure it's empty
whereis pipx # will give pipx: /usr/local/bin/pipx Now pipx will be available for all users. |
Hi @sofigio, I completely agree that getting the Installing it is straightforward: just download the file and run the following command: sudo dpkg -i pipx_1.6.0-1_all.deb The main purpose of hosting it in a repository is twofold:
This aligns perfectly with the principles of open source, doesn't it? Regarding your suggested solution, where pipx is installed using pipx (twice), the official documentation (https://github.com/pypa/pipx#install-pipx) explicitly states: Warning It is not recommended to install For this reason, I chose to backport the Ubuntu 24.10 version of pipx. Providing choice is key, and the repository exists to serve both advanced users and end-users. Of course, there's no obligation to use it—it's entirely up to you! Best regards, |
@sofigio :
Doing anything as root is, as far as I know, not the way to go with Ubuntu ...
This does not (when not doing it as root !)
Best regards, |
Pipx is in version 1.4.3 in Ubuntu 24-04.
How to upgrade to the 1.6.0 properly ? (without breaking anything ! )
The text was updated successfully, but these errors were encountered: