Azure DevOps Pipeline Agent.ToolsDirectory error on self-hosted agent LINUX- RHEL 9 while setting up python under Tool Cache

Sharma, Lovi 0 Reputation points
2024-07-09T23:16:29.34+00:00

I have a self-hosted agent that has Python3.9.18 installed which comes as part of RHEL 9 Image. Everytime I run the pipeline I get an error.

##[error]Version spec 3.9 for architecture x64 did not match any version in Agent.ToolsDirectory.

I have created the folder structure as well

`/myagent/_work/_tool/Python/3.9.19/x64/

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,111 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.