Reputation: 443
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
addToPath: true
architecture: 'x64'
I get the following error on ubuntu18.04:
##[error]Version spec 3.x for architecture x64 did not match any version in Agent.ToolsDirectory.
Upvotes: 2
Views: 1065
Reputation: 2196
There's a known issue when using Python 3.6 on Ubuntu-latest (recently upgraded to default version 22.04): Issue
There are no tarballs for 22.04 for any python 3.6.* versions. Check this link for pre-installed software for 22.04.
I am facing same error when using Python 3.6.x on Ubuntu-latest.
You could specify the image to Ubuntu-20.04 to use Python 3.6.x.
Or use Python 3.10.x on Ubuntu-latest image.
Upvotes: 1