Skip to content
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

Debian 12 - Pip issue #1

Closed
nerkdesign opened this issue Feb 13, 2024 · 1 comment
Closed

Debian 12 - Pip issue #1

nerkdesign opened this issue Feb 13, 2024 · 1 comment

Comments

@nerkdesign
Copy link

Hello,

Amazing job ! But since Debian 12, you can't use pip directly anymore, you should specify to create a venv to be able to run.
Or maybe to install the debian equivalent packages.

@nerkdesign nerkdesign closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2024
@xavierog
Copy link
Owner

xavierog commented Feb 13, 2024

Hi!

Amazing job !

Thank you -- feel free to share how you leverage Moulti, I am very curious about it.

since Debian 12, you can't use pip directly anymore, you should specify to create a venv

Correct; that is why the Moulti documentation suggests to install Moulti through pipx, provided by the pipx Debian package:

$ cat /etc/debian_version
12.4
$ apt show pipx
Package: pipx
Version: 1.1.0-1
Priority: optional
Section: python
Source: python-pipx
Maintainer: Debian Python Team <[email protected]>
Installed-Size: 935 kB
Depends: python3-venv, python3-argcomplete, python3-importlib-metadata | python3 (>> 3.8), python3-packaging, python3-userpath, python3:any
Recommends: fonts-font-awesome (>= 5.0.10+really4.7.0~dfsg-4.1), libjs-bootstrap4 (>= 4.6.1+dfsg1-4), libjs-highlight.js, libjs-jquery (>= 3.6.1+dfsg+~3.5.14-1), libjs-lunr (>= 2.3.9~dfsg-2), mkdocs (>= 1.4.2+dfsg-2)
Homepage: https://github.com/pypa/pipx
Download-Size: 393 kB
APT-Sources: http://deb.debian.org/debian bookworm/main arm64 Packages
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".

Essentially, pipx takes care of spawning a dedicated venv under ~/.local/pipx/venvs before calling pip. It also provides an ensurepath command to alter your $PATH so the executable files it installs are available on the command-line without having to activate a virtualenv manually.

Edit: system-wide installation with pipx is also possible: see pypa/pipx#754 (comment)

Does that answer your concern?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants