Python 如何在 mac 上查看 anaconda 的版本?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37110651/
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 anaconda's version on mac?
提问by cqcn1991
I installed anaconda
a while ago, and I want to know if I need to re-install it to catch up the new updates.
我anaconda
前一阵子安装了,我想知道是否需要重新安装它以赶上新的更新。
However, i don't know how to check the current version of anaconda
但是,我不知道如何检查当前版本 anaconda
In command line, I type anaconda -V
it gives
在命令行中,我输入anaconda -V
它给出
anaconda Command line client (version 1.2.2)
For anaconda -v
it returns
因为anaconda -v
它返回
anaconda: error: too few arguments
回答by Pareesa
Try conda -V
尝试 conda -V
Make sure the "V" is uppercase.
确保“V”是大写的。
回答by mauridb
The answer is a little bit more complex that one could think at the beginning. The main point is you have the package manager, conda
, and the metapackage, anaconda
.
答案比一开始想象的要复杂一些。重点是你有包管理器conda
, 和元包,anaconda
。
Long story short:
长话短说:
conda info
conda info
to get version information on conda, while
获取有关 conda 的版本信息,同时
conda list anaconda$
conda list anaconda$
to get version of metapackage.
获取元包的版本。
Detailed explanation on this article I've written on the subject:
关于这篇文章的详细解释我写过这个主题:
https://medium.com/@mauridb/how-to-check-your-anaconda-version-c092400c9978
https://medium.com/@mauridb/how-to-check-your-anaconda-version-c092400c9978
回答by dtrv
conda --version
gives you the version of the conda-package.anaconda --version
gives you the version of the anaconda command line client.
conda --version
为您提供 conda 包的版本。anaconda --version
为您提供 anaconda 命令行客户端的版本。
If you like to know the version of the installed Anaconda distribution, you can simply run python --version
witch gives you an output like
如果你想知道安装的 Anaconda 发行版的版本,你可以简单地运行python --version
女巫给你一个输出
Python 3.6.1 :: Anaconda 4.4.0 (64-bit)
Check that your $PATH
is set to your anaconda installation with which python
if you just get the version of python.
如果您刚刚获得 python 版本,请检查您$PATH
是否设置为 anaconda 安装which python
。
回答by Ferro Fang
Try
尝试
conda list | grep anaconda
which should give output like
这应该给出像
anaconda 5.0.0.1 py36hfb0b618_1
I use this command on linux. Guess it should also work on Mac.
我在 linux 上使用这个命令。猜猜它也应该适用于 Mac。
回答by optimistanoop
Try running
尝试跑步
sudo anaconda -V
sudo anaconda -V
which gives output-
anaconda Command line client (version 1.6.0)
这给出了输出-
anaconda Command line client (version 1.6.0)