How to specify Python version in circleCI orb?

Hi,

I am using the following orb: CircleCI Developer Hub - circleci/python

I am trying to determine how to specify the Python version that is not Python3.8. Is this possible? It says there is a parameter “tag” added, but I have tried various configurations to add that and they all give me an error. Here is my config file.

version: 2.1

orbs:
  python: circleci/python@2.1.1

jobs:
  build_doc:
    executor: python/default
    steps:
      - restore_cache:
          name: Restore .git
          keys:
            - source-cache-graphs
      - checkout
      - run: ...

Hi @adam2392 ,

To use the tag parameter for the python/default executor, you can do so via:

executor:
  name: python/default
  # use Python 3.9
  tag: ‘3.9’

Just to clarify, it should be ‘3.9’ with single quotes, not a ’

1 Like

I couldn’t get this to work with single quotes but double quotes seems to work:

version: 2.1

orbs:
python: circleci/python@2.1.1

jobs:
build:
executor:
name: python/default
tag: “3.12”