tkbx
tkbx

Reputation: 16305

Setting Python 32-bit and 64-bit mode for virtualenv on OSX

I have a python virtual environment for the sole purpose of using wxPython. wxPython on Mac uses the Carbon framework, which hasn't been built in 64-bit. Therefore, I can't run wxPython on a mac with Python running 64-bit. Is there a way to tell my installation to always run 32-bit? It's getting annoying having to use arch -i386 every time.

Upvotes: 1

Views: 1766

Answers (1)

zenpoy
zenpoy

Reputation: 20136

If you're using virtualenv, there's an argument -p to specify the PYTHON_EXE to use for this environment.

Upvotes: 2

Related Questions