简体   繁体   English

numpy的64位窗口

[英]numpy for 64 bit windows

I have read several related posts about installing numpy for python version 2.7 on a 64 bit windows7 OS. 我已经阅读了一些有关在64位Windows7操作系统上为python版本2.7安装numpy的相关文章。 Before I try these, does anybody know if the 32bit version will work on a 64bit system? 在尝试这些之前,有人知道32位版本是否可以在64位系统上运行吗?

It should work if you're using 32-bit Python. 如果您使用的是32位Python,它应该可以工作。 If you're using 64-bit Python you'll need 64-bit Numpy. 如果您使用的是64位Python,则需要64位Numpy。

If you are getting it from pip and you want a 64 bit version of NumPy, you need MSVS 2008. pip needs to compile NumPy module with the same compiler that Python binary was compiled with. 如果要从pip获取它,并且想要64位版本的NumPy,则需要MSVS2008。pip需要使用与Python二进制文件相同的编译器来编译NumPy模块。

The last I checked (this Summer), python's build.py on Windows only supported up to that version of MSVS. 我检查的最后一个(今年夏天)在Windows上的python build.py仅支持该版本的MSVS。 Probably because build.py isn't updated for compilers which are not clearly available for free as compile-only versions. 可能是因为未针对未明确免费提供为仅编译版本的编译器更新build.py。 There is an "Express" version of MSVS 2010, 2012 and 2013 (which would satisfy that requirement). MSVS 2010、2012和2013有一个“ Express”版本(可以满足该要求)。 But I am not sure if there is a dedicated repository for them and if they have a redistribution license. 但是我不确定他们是否有专用的存储库,以及它们是否具有重新分发许可证。 If there is, then the only problem is that no one got around to upgrading build.py to support the newer vertsions of MSVS. 如果有的话,唯一的问题是没有人去升级build.py以支持MSVS的新版本。

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

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