I have an Astro project I created, and the Dockerfile starts with FROM quay.io/astronomer/astro-runtime:8.2.0
. I’m having a tough time with Python versions. See the below output from within the container.
$ python --version
Python 3.9.2
$ python3.10 --version
Python 3.10.11
Is it expected for the container to have two versions of Python installed? When I check the sys.path, I see the below:
[‘/workspaces/astro-airflow/dags/utils’, ‘/usr/local/airflow’, ‘/usr/local/lib/python310.zip’, ‘/usr/local/lib/python3.10’, ‘/usr/local/lib/python3.10/lib-dynload’, ‘’, ‘/home/astro/.local/lib/python3.10/site-packages’, ‘/usr/local/lib/python3.10/site-packages’]
However, when I add a package to requirements.txt, it installs to “/home/astro/.local/lib/python3.9/site-packages”, so my DAGs can’t find it. Am I doing something wrong, or is this some kind of bug?