Albert Myers
Albert Myers

Reputation: 185

Is it possible to use 32 bit ctypes with a 64 bit Python interpreter?

If not, can I install both versions of python on my system? How do I differentiate between them?

Upvotes: 4

Views: 1279

Answers (1)

Spencer Rathbun
Spencer Rathbun

Reputation: 14900

On windows the python installer does not add the interpreter to the path by default, or set up any entries in the registry. So, just run the 32 bit installer, then run the 64 bit installer and set it to install to a different location.

Then you can create a shortcut to each interpreter in c:\windows (which is on your path). Name one shortcut python and the other python64 and you should be mostly good.

You will also probably want to look into using virtualenv for keeping everything separate on projects.

Upvotes: 3

Related Questions