Does 64-bit Anaconda on win32 uses 32-bit or 64-bi

2019-06-21 04:50发布

I guess the answer is 32-bit, but I'm a bit confused on why I can even install Anaconda 64 in a win32.

I used to work on Anaconda 64-bit but I just realized that my system is win32 and this generated some exceptions from time to time. See for instance this issue I opened for scipy:

https://github.com/scipy/scipy/issues/4524

I have a 64-bit OS according to my system info. So:

  • Does 64-bit Anaconda on win32 use 32-bit or 64-bit?

(I don't know why I have a win32 on a "64-bit OS")

When I start a python session, it says:

Anaconda 2.1;0 (64-bit) (default; Jul 2 2014) [MSC v.1 500 64 bit (AMD64)] on win32.

3条回答
Melony?
2楼-- · 2019-06-21 05:33

A friend of mine was running a 32 bit version of Windows on his x64 based processor. He opted to use the 32-bit version of anaconda, as he was not sure if the calls through the stack would be influenced by the 32 bit windows and thus cause issues with the storage of data types in memory (i.e. be several bits short of a full address)

查看更多
仙女界的扛把子
3楼-- · 2019-06-21 05:36

Anaconda 2.1;0 (64-bit) (default; Jul 2 2014) [MSC v.1 500 64 bit (AMD64)] on win32

Here win32 indicates that the system is Windows. The name of the Windows API on both x86 and x64 is Win32. It's exactly the same API but with different sized pointers. It is a little confusing but when you read win32, interpret that as meaning desktop Windows.

What matters here is the AMD64. That indicates the machine on which the code executes. Which is the x64 machine.

Your code is running in a 64 bit process.

查看更多
做个烂人
4楼-- · 2019-06-21 05:48

I have a 64-bit OS according to my system info

That is all that counts, and that is why the 64 bit version Anaconda runs on your system.

Where have you seen the term "Win32" on your system? Why did you infer from there that you do not have a 64 bit architecture? "Win32" is often used as a name for the Windows API itself. AFAIK it is only rarely used to indicate the actual architecture the system is compiled for.

查看更多
登录 后发表回答