'Check all installed python versions on linux

I use conda(anaconda) environments and wanted to test some syntax in py3.8. Is there a way in which I can check all the installed python versions in my pc(across all conda envs).

I have tried

ls -ls /usr/bin/python*

but this doesn't include python installations in conda envs.



Solution 1:[1]

One can search all Conda environments for the python package with

conda search --envs python

For each entry, this will give version, build, channel of origin, and the absolute location of the environment.

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 merv