如何检查安装在 Windows 10 PC 上的 python anaconda 版本?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/48342098/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to check python anaconda version installed on Windows 10 PC?
提问by user1315789
I have a Windows 10 PC with python anaconda installed. The latest anaconda version is v5.0.1
我有一台安装了 python anaconda 的 Windows 10 PC。最新的anaconda版本是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?
我想知道PC是否安装了最新版本的v5.0.1,是32位/64位还是python 2.7/3.6。我怎么做?
回答by Shijith
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
在 anaconda 提示符下,执行
conda -V
或conda --version
获取 conda 版本。
python -V
或者python --version
获取python版本。
conda list anaconda$
获取 Anaconda 版本。
conda list
获取所有已安装软件包的名称、版本、构建和渠道详细信息(在当前环境中)。
conda info
获取所有当前环境的详细信息。
conda info --envs
查看所有环境的列表
回答by kthy
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
.
包含 Anaconda 安装的文件夹包含一个子文件夹conda-meta
,其中包含所有已安装包的 json 文件,其中一个用于 Anaconda 本身。寻找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:
我的文件名为anaconda-5.0.1-py27hdb50712_1.json
,底部是有关版本的更多信息:
"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.
的输出conda -V
是 conda 版本。
回答by Mwibutsa Floribert
If you want to check the python version in a particular cond environment you can also use conda list python
如果你想在特定的 cond 环境中检查 python 版本,你也可以使用 conda list python