Friday, June 26, 2015

Re: Trouble installing Django

Hi Elizabeth,

You must check version of the python installed on your virtualenv.

You can see version of python in MAP_VIO/bin/ directory inside your virtualenv.

Note that 1.8 version of Django not support python 2.6, python 2.7 or above is needed.

Check on release note for more information.

You can create a virtualenv for different version of python, check this: 

But make sure that you install of the new python version that you will use.


For python 3 you must use pyenv, that came with Python 3, check this:

Sorry for my poor English.

Cheers

On Fri, Jun 26, 2015 at 4:07 PM, Elizabeth Bentivegna <elizabeth.bentivegna@gmail.com> wrote:

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.



--
Lucas Klassmann
Desenvolvedor de Software

Email: lucasklassmann@gmail.com
Web site: http://www.lucasklassmann.com

--
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/CAOz50pJfm9HX5HHzLtyqiF4iH3n5cMy4Svb6Zis5kLL9rZOCmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment