
For example, this YAML installs or upgrades pip and the setuptools and wheel packages.
PY2EXE PYTHON 3.5 DOWNLOAD INSTALL
You can use scripts to install specific PyPI packages with pip. Parser.add_argument("-world", help="Provide the name of the world to greet.")

Print ('The arguments are:', str(sys.argv)) Print ('Executing script file is:', str(sys.argv))

You can use sys.argv or the more sophisticated argparse library to parse the arguments. To parameterize script execution, use the PythonScript task with arguments values to pass arguments into the executing process. You can also run inline Python scripts with the Python Script task: - task: 'inline' For example: - script: python src/example.py To run Python scripts in your repository, use a script element and specify a filename. You can add tasks to run using each Python version in the matrix. VmImage: 'ubuntu-latest' # other options: 'macOS-latest', 'windows-latest' Then set the UsePythonVersion task to reference the matrix variable. To run a pipeline with multiple Python versions, for example to test a package against those versions, define a job with a matrix of Python versions. This snippet sets the pipeline to use Python 3.6: steps: To use a specific version of Python in your pipeline, add the Use Python Version task to azure-pipelines.yml. To see which Python versions are preinstalled, see Use a Microsoft-hosted agent.

Python is preinstalled on Microsoft-hosted build agents for Linux, macOS, or Windows. You don't have to set up anything for Azure Pipelines to build Python projects.
