How to check python anaconda version installed on

2020-02-17 09:57发布

问题:

I have a Windows 10 PC with python anaconda installed. The latest anaconda version is v5.0.1

I would like to find out whether the PC has the latest version v5.0.1 installed and whether it is 32-bit/64bit or python 2.7/3.6. How do I do that?

https://www.anaconda.com/download/

回答1:

On the anaconda prompt,do a
conda -V or conda --version to get the conda version.
python -V or python --version to get the python version.
conda list anaconda$ to get the Anaconda version.
conda list to get the Name,Version,Build & Channel details of all the packages installed (in the current environment).
conda info to get all the current environment details.
conda info --envs To see a list of all your environments

Detailed description here, download cheat sheet from here



回答2:

The folder containing your Anaconda installation contains a subfolder called conda-meta with json files for all installed packages, including one for Anaconda itself. Look for anaconda-<version>-<build>.json.

My file is called anaconda-5.0.1-py27hdb50712_1.json, and at the bottom is more info about the version:

"installed_by": "Anaconda2-5.0.1-Windows-x86_64.exe", 
"link": { "source": "C:\\ProgramData\\Anaconda2\\pkgs\\anaconda-5.0.1-py27hdb50712_1" }, 
"name": "anaconda", 
"platform": "win", 
"subdir": "win-64", 
"url": "https://repo.continuum.io/pkgs/main/win-64/anaconda-5.0.1-py27hdb50712_1.tar.bz2", 
"version": "5.0.1"

(Slightly edited for brevity.)

The output from conda -V is the conda version.