HOWTO · Python
How to Check the Python and Anaconda Version
Learn how to check the Python and conda versions from an Anaconda Prompt and inspect package versions in the active environment.
On this page
To check versions from an Anaconda Prompt, use conda -V or conda --version for conda itself, and python -V or python --version for the Python interpreter available in the active environment. Use conda list or conda info when you also want environment and package details. These commands answer different questions: the conda version is not the Python version. Compare the results with your project’s requirements; checking versions helps diagnose compatibility but does not guarantee it.
Use the conda -V Command to Check the Anaconda Version
Run conda -V in the Anaconda Prompt to print the installed conda version. This reports the conda package manager’s version, rather than a separate version number for the Anaconda distribution. The command is shown inline because this environment cannot run Anaconda Prompt commands; no current output is supplied.
Use the conda --version Command to Check the Anaconda Version
conda --version is the long-option equivalent of conda -V and reports the same conda version. Choose either form. The version number depends on the conda installation, so use the value printed by your own prompt rather than a sample from another machine.
Using the python -V and python --version Commands to Check the Python Version
Run either python -V or python --version to see the version of the Python interpreter selected by the active environment. If the prompt is using an environment other than base, these commands report that environment’s Python. For a quick distinction, these command labels summarize what each query reports:
print("conda --version reports conda; python --version reports Python.")
conda --version reports conda; python --version reports Python.
The Python command itself is an Anaconda Prompt operation and is not executed by this example. The version shown by your prompt is the relevant one to compare with your project’s Python requirement.
Using the conda list anaconda$ Command to Check the Anaconda Version
Run conda list anaconda$ to query the package list for the anaconda distribution package and its version. This is package information, not a general version command for every Anaconda installation. A Miniconda environment does not include the anaconda metapackage by default, so the query may return no matching package there.
Use the conda list Command to Check Both the Anaconda and Python Version
conda list shows packages in the active environment. In its output, look for the rows named conda and python; their Version column gives each package’s version. The anaconda metapackage may also appear when it is installed. Environment paths and package versions vary by machine, so treat previously published sample values as illustrative, not as current results.
Use the conda info Command to Check Anaconda and Python Version
Run conda info for a summary of the active conda installation and environment. Find the conda version and python version lines to read those versions, and check active environment to see which environment the summary describes. Output details can differ across conda versions and installations; use the lines printed locally.
Conclusion
Use conda -V or conda --version to check conda, and python -V or python --version to check the active Python interpreter. For package and environment context, inspect conda list anaconda$, conda list, or conda info. Compare the versions you find with your project’s stated requirements when diagnosing compatibility.