Closed james-willdooit closed 1 year ago
Ahhh, sorry, missed that. I am on the fence about this being enforced.
https://github.com/geerlingguy/docker-debian12-ansible/blob/master/Dockerfile#L19-L20 Is a great solution and I am stealing it :) and I agree, I see no advantage enforcing python envs in containers.
As of Debian Bookworm and Ubuntu 23.04, in order to install pip deps, you will need to implicitly pass the "--break-system-packages" argument to pip3. This currently isn't an issue for raspbian (for now :)), but if you are running this on the likes of Debian Testing, this will cause some issues.
Until Jeff (or someone kindly created a PR to manage the pip deps in a Python Managed Environment), you will need to edit tasks/docker.yml to include:
extra_args: -break-system-packages
under the Install Docker Compose task.
Further reading: https://discuss.python.org/t/pep-668-marking-python-base-environments-as-externally-managed/10302/69