Skip to content

Virtual environment does not leverage APT packages python3-PIP_PACKAGE #92

@Benjamin-Loison

Description

@Benjamin-Loison

Proposal:

# Add a code block here, if required

Maybe this a feature and not a bug, but how to have behavior like the one I want?

Experienced with tqdm and ollama for instance.

sudo apt install -y python3-ollama
Output:
Installing:                     
  python3-ollama

Installing dependencies:
  python3-annotated-types  python3-dnspython  python3-email-validator  python3-pydantic  python3-pydantic-core

Suggested packages:
  python3-trio  python3-aioquic

Summary:
  Upgrading: 0, Installing: 6, Removing: 0, Not Upgrading: 4
  Download size: 2,085 kB
  Space needed: 8,478 kB / 23.6 GB available

Get:1 http://deb.debian.org/debian trixie/main amd64 python3-annotated-types all 0.7.0-1 [18.8 kB]
Get:2 http://deb.debian.org/debian trixie/main amd64 python3-dnspython all 2.7.0-1 [164 kB]
Get:3 http://deb.debian.org/debian trixie/main amd64 python3-email-validator all 2.2.0-1 [31.6 kB]
Get:4 http://deb.debian.org/debian trixie/main amd64 python3-pydantic-core amd64 2.27.2-3+b1 [1,506 kB]
Get:5 http://deb.debian.org/debian trixie/main amd64 python3-pydantic amd64 2.10.6-2 [346 kB]
Get:6 http://deb.debian.org/debian trixie/main amd64 python3-ollama all 0.5.1-1 [18.4 kB]
Fetched 2,085 kB in 0s (21.9 MB/s)
Selecting previously unselected package python3-annotated-types.
(Reading database ... 555249 files and directories currently installed.)
Preparing to unpack .../0-python3-annotated-types_0.7.0-1_all.deb ...
Unpacking python3-annotated-types (0.7.0-1) ...
Selecting previously unselected package python3-dnspython.
Preparing to unpack .../1-python3-dnspython_2.7.0-1_all.deb ...
Unpacking python3-dnspython (2.7.0-1) ...
Selecting previously unselected package python3-email-validator.
Preparing to unpack .../2-python3-email-validator_2.2.0-1_all.deb ...
Unpacking python3-email-validator (2.2.0-1) ...
Selecting previously unselected package python3-pydantic-core.
Preparing to unpack .../3-python3-pydantic-core_2.27.2-3+b1_amd64.deb ...
Unpacking python3-pydantic-core (2.27.2-3+b1) ...
Selecting previously unselected package python3-pydantic.
Preparing to unpack .../4-python3-pydantic_2.10.6-2_amd64.deb ...
Unpacking python3-pydantic (2.10.6-2) ...
Selecting previously unselected package python3-ollama.
Preparing to unpack .../5-python3-ollama_0.5.1-1_all.deb ...
Unpacking python3-ollama (0.5.1-1) ...
Setting up python3-pydantic-core (2.27.2-3+b1) ...
Setting up python3-annotated-types (0.7.0-1) ...
Setting up python3-dnspython (2.7.0-1) ...
Setting up python3-email-validator (2.2.0-1) ...
Setting up python3-pydantic (2.10.6-2) ...
Setting up python3-ollama (0.5.1-1) ...
Scanning processes...                                                                                                                                                                                              
Scanning processor microcode...                                                                                                                                                                                    
Scanning linux images...                                                                                                                                                                                           

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

on my Debian 13 GNOME laptop.

sudo apt install python-ollama
Error: Unable to locate package python-ollama

Alternatively make a system wide and not just user wide virtual environment and be able to leverage such common PIP packages in user wide environment.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions