Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install django for python 3.3

I had python 2.6.1 because it was old I decide to install python 3.3.2 but, when I type "python" in my mac it prints it is version 2.6.1 and when I type python3 it shows that this is 3.3.2. I installed django 1.6 but when I check, understand that it is installed for old version of python (python 2.6.1). I want to instal it for my python 3.3.2 what should I do? any way to uninstall python 2.6.1 and when I enter python in terminal it's version be 3.3.2? I have mac os 10.6.8

like image 794
sandra Avatar asked Nov 27 '13 19:11

sandra


1 Answers

You could use pip to manage the package for you. If pip is not installed. use

sudo easy_install pip

to install it. Then

pip3 install django

would install django for your python3.

like image 138
flyingfoxlee Avatar answered Oct 16 '22 19:10

flyingfoxlee