Sunday, 15 September 2013

django wont work with python3.3.3 -



django wont work with python3.3.3 -

hello installed django on mac os x 10.9 using pip install django. installation successful, python3.3.3 installed in next directory:

/usr/local/lib/python3.3/site-packages

inside directory there directory django assuming installation success on python 3.

the problem arise when trying next procedure:

django-admin.py startproject mysite

the above command creates success directory files on command:

python manage.py runserver

or

python3 manage.py runserver

the error is:

file "manage.py", line 8, in <module> django.core.management import execute_from_command_line importerror: no module named 'django'

moreover, find solution wont work. alter first comment of file django-admin.py link compiler right version of python, fine, problem same.

any help?

check out tutorial on python development on osx: http://hackercodex.com/guide/python-development-environment-on-mac-osx/

virtualenv allows create sandboxes can install different python versions , python libraries without interfering other virtual environments or scheme python version/libraries.

your specific problem though, seems django not added scheme path, python doesn't know find django files. can risky add together new things scheme path because end conflicting existing libraries.

if utilize virtualenv, each environment have own "system" path , python executable in environment know find django files.

django

No comments:

Post a Comment