Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to upgrade a portable Python 32 bit install to a 64 bit install?

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.

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.

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?

like image 838
TerraCode Avatar asked May 30 '16 10:05

TerraCode


People also ask

How do I convert Python to 64-bit?

simple answer: make sure you install the bit version you want first. If you have already installed the 32bit version and want to switch to 64bit version then simply uninstall the 32bit version first then install the 64bit version.

Can I install Python 32-bit and 64-bit?

Windows users can run 32-bit editions of Python on 64-bit Windows, but at a slight cost of performance. 32-bit Python, and 32-bit apps generally, can access only 4GB of memory at a time.

How do I upgrade Python already installed?

Updating Python in Windows Updating to a new Python version is easy on a computer running Windows. All you have to do is visit the Python downloads page and download the latest version. Clicking on the button will replace the existing version of Python with the new version.

Which version of Python is best for Windows 7 32-bit?

1 Answer. According to the official Python documentation reports, Python 3.9.


2 Answers

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

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

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

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.

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

like image 137
sorin Avatar answered Oct 18 '22 15:10

sorin


make a backup of you "Lib" folder present in your python installation folder. Now when you install your python 64 bit paste this "Lib" folder there. After this, you don't need to install many modules again.

like image 25
Pranav Choudhary Avatar answered Oct 18 '22 13:10

Pranav Choudhary