我应该使用 Python 32bit 还是 Python 64bit [英] Should I use Python 32bit or Python 64bit

查看:29
本文介绍了我应该使用 Python 32bit 还是 Python 64bit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 win7 64 位安装.我必须使用 Python 64 位吗?无论如何,32 位和 64 位 Python 版本之间有什么区别?不同的 Python 包(如 south、django、mysqldb 等)是否只支持 32bit/64bit?

I have a win7 64bit installation. Must I use Python 64bit? What are the differences between the 32bit and 64bit Python versions anyway? Do different Python packages (such as south, django, mysqldb etc) support only 32bit/64bit?

推荐答案

64 位版本将允许单个进程使用比 32 位更多的 RAM,但是您可能会发现内存占用量会增加一倍,具体取决于您在 RAM 中存储的内容(特别是整数).

64 bit version will allow a single process to use more RAM than 32 bit, however you may find that the memory footprint doubles depending on what you are storing in RAM (Integers in particular).

例如,如果您的应用需要 > 2GB 的 RAM,因此您从 32 位切换到 64 位,您可能会发现您的应用现在需要 > 4GB 的 RAM.

For example if your app requires > 2GB of RAM, so you switch from 32bit to 64bit you may find that your app is now requiring > 4GB of RAM.

检查您的所有 3rd 方模块是否都支持 64 位,否则同时坚持 32 位可能更容易

Check whether all of your 3rd party modules are available in 64 bit, otherwise it may be easier to stick to 32bit in the meantime

这篇关于我应该使用 Python 32bit 还是 Python 64bit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆