vaindil
vaindil

Reputation: 7844

Installing Django to Python 3.3 on Mac

I'm trying to install Django 1.5 to my Python 3.3 installation, but installing it either manually or via pip installs it to my (Mountain Lion) Mac's Python 2.7 folder. How can I force it to install for 3.3?

Upvotes: 1

Views: 693

Answers (1)

karthikr
karthikr

Reputation: 99620

I would recommend using a virtual environment, and use the -p flag to specify which python you wish to use

$ virtualenv -p /usr/local/bin/python3.3 <virtual_env>

Or

$ virtualenv --python=/opt/python-3.3/bin/python ENV

Just change the path to Python accordingly

Documentation here

Upvotes: 3

Related Questions