简体   繁体   English

如何检查安装的Anaconda是32位还是64位?

[英]How to check if the installed Anaconda is 32-bit or 64-bit?

A few weeks ago, to dabble in IPython notebooks, I had downloaded and installed Anaconda from http://continuum.io/downloads . 几个星期前,为了涉足IPython笔记本,我从http://continuum.io/downloads下载并安装了Anaconda。 There was a problem in the installation (either because it was 32-bit or 64-bit — a detail I can't remember) which I solved but uninstalling my first attempt and installing the other version. 安装中存在问题(因为它是32位或64位 - 我记不住的一个细节),我解决了这个问题但卸载了我的第一次尝试并安装了另一个版本。 Then I went about creating my notebooks with some practice problems. 然后我开始创建我的笔记本有一些练习题。

Currently I can run ipython notebook in the command prompt and the notebooks run perfectly well. 目前我可以在命令提示符下运行ipython notebook并且笔记本运行得非常好。 But the there's no mention of whether the system is 32-bit or 64-bit in the tree of notebooks (or in the tabs nearby). 但是没有提到系统是笔记本树(或附近的标签)中的32位还是64位。

I would usually sort such issues using the command prompt. 我通常会使用命令提示符对这些问题进行排序。 But the commands conda --version and ipython --version just yield the respective version numbers and not the information I am looking for. 但命令ipython --version conda --versionipython --version只会产生相应的版本号,而不是我要查找的信息。

My operating system is Win7x64 but that hasn't prevented me from installing 32-bit softwares in past. 我的操作系统是Win7x64但这并没有阻止我在过去安装32位软件。

conda info has this information. conda info有这个信息。 If you need to access it programmatically, use conda info --json . 如果需要以编程方式访问它,请使用conda info --json

Open a standard python console, and in the header it should tell you 打开一个标准的python控制台,在标题中它应该告诉你

Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>>

conda --v. conda --v。 It displays the Conda version 它显示Conda版本

For CentOS 6.7 and miniconda2: 对于CentOS 6.7和miniconda2:

Type python and enter these commands: 输入python并输入以下命令:

import platform
print platform.architecture() 

In my case, it gives: 就我而言,它给出了:

('32bit', '')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM