'Install Taurus Task fails due to error: Unable to locate executable file: 'bzt'

After installing Python 3.8 on a Self hosted Windows agent on Azure. I ran the below commands which do not give any error while installing:

python -m pip install --upgrade pip setuptools wheel Cython
python -m pip install bzt

But I am getting below error when I run the Install Taurus task on Azure

Error: Unable to locate executable file: 'bzt'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.

I had enabled "Add python.exe to Path" checkbox when installing Python and also added C:\Users\USERNAME\AppData\Local\Programs\Python\Python38\Scripts to PATH environment variable

EDIT: I restarted the machine and now the error has changed:

Error: The process 'C:\Users\USERNAME\AppData\Local\Programs\Python\Python38\Scripts\bzt.exe' failed with exit code 3221225477


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source