本文介绍了是否可以将便携式 Python 32 位安装升级到 64 位安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个月以来,我一直在开发一个程序,现在需要一些额外的功能.最初,32 位安装很好,但由于我现在在 scipy 中使用 大量 矩阵,我根本没有 32 位所需的 RAM.

I've been working on a single program for a few months now, which now requires some additional functionality. Originally, a 32 bit install was just fine, but since I'm now working with massive matrices in scipy, I simply do not have the required RAM in 32bit.

我遇到的另一个问题是,我的小项目必须非常容易地转换到属于那些不知道自己在做什么而只想点击运行"的人的新系统,所以我用便携式 python 安装.

The other problem I have is that my little project has to be very easily transposeable to new systems belonging to people who have no idea what they're doing and just want to click "run", so I did the whole thing with a portable python install.

是否可以将我的小 2.7 python升级"到 64 位,或者我是否注定要在全新安装中重新安装每个模块?

Would it be possible to "upgrade" my little 2.7 python to 64 bit, or am I condemned to reinstalling every single module in a fresh install?

推荐答案

不,不能将 32 位 Python 安装升级到 64 位.

No, it is not possible to upgrade a 32bit Python installation to a 64bit one.

不过,您可以采取一些措施来加快新 64 位版本的安装.

Still, there is something that you can do in order to speedup installation of a new 64bit version.

运行 pip freeze >package.txt 以生成所有已安装包及其版本的列表.

Run pip freeze > packages.txt on the old installation in order to generate a list of all installed packages and their versions.

安装新的 python 版本后,运行 pip install -r packages.txt 以安装与旧安装相同版本的软件包.

After you install the new python version, run pip install -r packages.txt in order to install the same version of the packages that you had on the old installation.

我看到你使用 scipy,你可能想看看 Anaconda.它可以为您节省大量时间.

As I see you use scipy, you may want to have a look at Anaconda. It could save you a lot of time.

这篇关于是否可以将便携式 Python 32 位安装升级到 64 位安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 04:31