'env: python: No such file or directory

I was trying running this script on azure pipeline,using ln -s -f, I was able to create a symlink (path usr/local/bin/python) but on running whereis python, It is not able to find python?? I am assuming it is searching in usr/bin/, where there is only python3

- script: brew install [email protected]
  displayName: 'Install python'
  continueOnError: true

- script: ln -s -f /usr/local/bin/python3.9 /usr/local/bin/python
  displayName: 'Add symlink from python to python3'
  continueOnError: true

- script: whereis python
  displayName: "finding Python"
  continueOnError: true


Sources

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

Source: Stack Overflow

Solution Source