# Collection python dependencies are ignored

**URL:** <https://forum.ansible.com/t/collection-python-dependencies-are-ignored/45301>\
**Category:** Get Help\
**Tags:** ansible-galaxy, galaxy, dependencies, collections, galaxy-ng\
**Created:** [February 8, 2026, 10:46am UTC](https://forum.ansible.com/t/collection-python-dependencies-are-ignored/45301 "2026-02-08T10:46:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DengelFred](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@DengelFred](https://forum.ansible.com/u/DengelFred)\
**Post date:** [February 8, 2026, 10:46am UTC](https://forum.ansible.com/t/collection-python-dependencies-are-ignored/45301/1 "2026-02-08T10:46:49Z")

</div>

Hello,

I created a collection for all my roles for the homelab and defined a requirements.yml for the ansible collections and a requirements.txt for the python packages.  
Unfortunately the python package dependencies are ignored during install (collections are ok)

My collection structure:

```bash
projects/mcchaos.homelab/
├── README.md
├── docs
├── galaxy.yml
├── meta
│ ├── execution-environment.yml
│ ├── requirements.txt
│ └── runtime.yml
├── plugins
│ ├── README.md
│ ├── filter
│ │ └── my_filters.py
│ └── modules
│ └── proxmox_replication.py
├── requirements.txt
└── roles
    ├── pve_backup
    │ └── tasks
    │ └── main.yml
    ├── restic_pull
    │ ├── tasks
    │ │ └── main.yml
    │ ├── templates
    │ │ └── restic-pull.sh
    │ └── tests
    │ └── test_restic_pull.yml
    └── ...

```

The execution-environment.yml:

```yaml
# code: language=yaml
version: 3

dependencies:
  python: meta/requirements.txt

```

The requirements.txt:

```auto
proxmoxer>=2.0
jmespath
requests
httpx
dnspython
netaddr
passlib
ssh-audit
python-debian

```

Check the dependencies:

```bash
$ ansible-builder introspect projects/mcchaos.homelab/
# Dependency data for projects/mcchaos.homelab/
---
python: []
system: []

$ 

```

Install the collection:

```bash
$ ansible-galaxy collection install --force projects/mcchaos.homelab

```

I tried already several tutorials but unfortunately it’s still not working.  
What do I need to configure, that together with the collection all python packages will be installed?

Thanks a lot 🙂  
Thomas

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [February 8, 2026, 1:53pm UTC](https://forum.ansible.com/t/collection-python-dependencies-are-ignored/45301/2 "2026-02-08T13:53:45Z")

</div>

The Python requirements are only installed when building an Execution Environment with ansible-builder. `ansible-galaxy collection install` simply **never** installs Python requirements.

---

<div class="post-metadata">

**Author:** ![DengelFred](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@DengelFred](https://forum.ansible.com/u/DengelFred)\
**Post date:** [February 8, 2026, 5:19pm UTC](https://forum.ansible.com/t/collection-python-dependencies-are-ignored/45301/3 "2026-02-08T17:19:16Z")

</div>

> [@felixfontein](#):
>
> ansible-builder

Thanks for the quick response 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 10, 2026, 5:19pm UTC](https://forum.ansible.com/t/collection-python-dependencies-are-ignored/45301/4 "2026-03-10T17:19:49Z")

</div>

Closed on March 10, 2026, 5:19pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
