Monday, January 30, 2017

Re: Installing Django

Hello Jani, you are an angel :) 

I have un-installed it and re-install to the right folder.. thanks a lot. 

On Monday, January 30, 2017 at 4:34:27 PM UTC+8, Jani Tiainen wrote:

Hi,

First you seem to be installing Django to Windows, it adds certain complexity all together, it's not impossible though.


By given paths for some strange reason easy_install seems to thing that you have installed your Python to "C:\program files (x86)\" directory (not subdirectory there or anything, to root of that folder), that is quite wrong, first it requires allways adminstrative access to install anything there, and second it's not standard place, which would be something like C:\PythonXX\ (to avoid permission problems).

First thing to you is now to figure out did you managed to mess up Python installation by putting it to incorrect path and fix by removing all components and then installing it to more proper location.

Depending on Python modules you want to use some may require compiling which is not simple under Windows, so if you can use some Linux (or some other unix variant) box or something like virtual machine setting up environment is much easier.

On 30.01.2017 05:05, Danny Jr Chu wrote:
Guys, please help. I am new with Python and Django, I mean I don't have any clue what's going on (don't even know how to encode), but I wish I could build a website out of my imaginary. I know this will goes miles and miles... I am trying to install Django but couple of errors occur : 

PS C:\Users\Luv> easy_install django
Searching for django
.10.5.tar.gz#md5=3fce02f1e6461fec21f1f15ea7489924
Best match: Django 1.10.5
Processing Django-1.10.5.tar.gz
Writing C:\Users\Luv\AppData\Local\Temp\easy_install-5dcbu64l\Django-1.10.5\setup.cfg
Running Django-1.10.5\setup.py -q bdist_egg --dist-dir C:\Users\Luv\AppData\Local\Temp\easy_install-5dcbu64l\Django-1.10
.5\egg-dist-tmp-k4dzxio3
no previously-included directories found matching 'django\contrib\admin\bin'
warning: no previously-included files matching '__pycache__' found anywhere in distribution
creating c:\program files (x86)\lib\site-packages\django-1.10.5-py3.6.egg
Extracting django-1.10.5-py3.6.egg to c:\program files (x86)\lib\site-packages
Adding django 1.10.5 to easy-install.pth file
Installing django-admin.py script to c:\program files (x86)\Scripts
error: [Errno 13] Permission denied: 'c:\\program files (x86)\\Scripts\\django-admin.py'

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/86091d59-6578-4e85-9be0-d24beb1f5b84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--   Jani Tiainen

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d0938a27-8246-4b9d-9a16-b5c7919349f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment