Hello, Are you running your pipeline from the python 3.11 environment? If you are running from a python 3.11 environment and don't use a custom docker container image, DataflowRunner(Assuming Apache Beam on GCP means Apache Beam on DataflowRunner), will use Python 3.11.
Thanks, Anand
