Can I install Python 2.7.1 on the 64-bit side on a 32-bit installation on OS X?

Short description
Is it possible to install Python 2.7.1 64 / 32bit from python.org on top of an existing installation (from python.org) of Python 2.7.1 32bit?

Background
I installed a 32-bit version to support wxPython (2.8), which so far has given me zero problems. There are several modules that are difficult for me to install now (psycopg2 and mysql-python). Warning messages in homebrew constantly warn me that there is no 64-bit version of Python on the way. These warnings are only added to my 64-bit wishlist.

At the time when I chose the 32-bit installation, the main focus was the graphical interface for a specific project. Now the GUI was very simple, and database database support (using Django) is much more important. At the same time, the use of wxPython 2.9 development version (supporting OS X and 64 bit 2.7) became acceptable.

For non-small users, to explain why I had to use the 32-bit version, see this Quick Start Guide on using virtualenv in a wxpython project

System Information OS
Development
System: Mac OS X Snow Leopard (10.6.7)
Python: 2.7.1 with virutalenv / virutalenv-wrapper
Project Dependencies:
Please note that MySQL may be PostgresSQL psycopg2 if I can get postgresql to install from homebrew

Django == 1.2.5
MySQL python == 1.2.3
PIL == 1.1.7
PyVISA == 1.3
pyserial == 2.5
virtualenv == 1.5.1
virtualenvwrapper == 2.6.3
wsgiref == 0.1.2
WxPython = = 2.8.11.0
wxPython-common == 2.8.11.0


OS Deployment System: Windows XP / Windows 7
Python: Hopefully None (purpose of using py2exe or similar tool)


, . Windows 7 (x86) , , 32- , OS X 32- 64/32- (/Library/Frameworks/Python.framework/Versions/2,7/).

!

5-18-2011: 8:40
, (.dmg) , 64- 32- . , , , 32- .

32- 64- , , homebrew , . , python ( ) "Python27_32" "Python27_64". , .

EDIT 7-12-2011:10:51 AM CST
- , homebrew? , 64- 32- ? SO, .

+5
3

http://www.macports.org/, linux/unix, MacInstallation , . /opt/local , . PATH LD_LIBRARY_PATH .

+2

- virtualenv. , python.

EDIT: python:

virtualenv -p python2.6

0

Another possible solution that was provided in response to one of my questions about using a virtual environment in the Windows world was to use Buildout . This approach looks like this will allow me to create an environment with a 32-bit version installed, and another with a 64-bit version.

I have not tested this yet, but I wanted to pass it on to everyone who tried to accomplish this feat.

Hooray!

0
source

All Articles