I am trying to get the install location of conda. This works fine on Windows:
conda_path = subprocess.check_output('where anaconda').decode("utf-8").strip()
In a linux shell whereis conda
works. os.system("whereis conda")
returns zero.
However,
conda_path = subprocess.check_output('where anaconda').decode("utf-8").strip()
Fails with: FileNotFoundError: [Errno 2] No such file or directory: 'whereis conda': 'whereis conda'
Any suggestions?