Friday, June 26, 2015

Trouble installing Django


Hi, I am attempting to learn Django for my job and am running into problems in the initial installation. I am on a Linux server running CentOS 6.4. I am following the tutorial on the documentation website.

I have installed pip and virtualenv. I am currently in a virtual env called MAP_VIO and I ran the command "pip install Django" which executed successfully, installing version 1.8.2.

However, when I run a Python 2.6 interpreter and try to import Django, I get this syntax error:



When I run command "django-admin.py version", I get a similar error:



When I run Python 3 and try it, I get "ImportError: No module named 'django'".

What is going on, and how do I fix it? I would like to use Python 3 for this project.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABT_XYOyRsgn7C4tEYxa2uUE5n5PWd%2B2phT6dBdBbSRd2EknXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment