Set python version

deployment
python
deploy

#1

I’m currently running an ansible script for deploy which uses python, it looks like it’s using python 3.4 and I’d like it to use 3.5. How can I set the python version for this?

- deploy:
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then
              apt-get update -qq
              apt-get install -qq --yes python3 python3-pip
              pip3 --quiet install ansible
              echo -e "\tStrictHostKeyChecking no" >> ~/.ssh/config
              ./scripts/deploy staging
            fi

#2

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