Challenge with installing django on windows 7 64 bit

178 views
Skip to first unread message

Magge

unread,
Jan 26, 2011, 12:23:34 PM1/26/11
to Django users
Hi,

I am trying to extract the installation files from the
Django-1.2.4.tar.gz file that I got from the django website. I tried
using winzip, 7z, cygwin and so forth. All these programs complain
that the file isnt a valid archive.

I used to work with django back in 2009 on Window. The installation
used to be off the extract of a zip file I remember. How do I get
going with the installation?

I appreciate any inputs on this

Thanks
Keshav Magge

j_syk

unread,
Jan 26, 2011, 5:22:40 PM1/26/11
to Django users
Hello-
I only develop django on osx and lunix (ubuntu), but I've looked into
options for installing it on my windows desktop- even though I've
never gotten around to it...
I've found http://www.instantdjango.com/ which has all the common
files you need to develop in one package. According to the site, you
don't even need to install anything, just extract the .exe and work
there.
7-zip documentation says that it should be able to unzip tar.gz, but
maybe you somehow got a corrupted download. Have you tried downloading
it again?

Mike Dewhirst

unread,
Jan 26, 2011, 6:20:48 PM1/26/11
to django...@googlegroups.com
On 27/01/2011 9:22am, j_syk wrote:
> Hello-
> I only develop django on osx and lunix (ubuntu), but I've looked into
> options for installing it on my windows desktop- even though I've
> never gotten around to it...
> I've found http://www.instantdjango.com/ which has all the common
> files you need to develop in one package. According to the site, you
> don't even need to install anything, just extract the .exe and work
> there.
> 7-zip documentation says that it should be able to unzip tar.gz, but
> maybe you somehow got a corrupted download. Have you tried downloading
> it again?
>
>
> On Jan 26, 11:23 am, Magge<prasannakes...@gmail.com> wrote:
>> Hi,
>>
>> I am trying to extract the installation files from the
>> Django-1.2.4.tar.gz file that I got from the django website. I tried
>> using winzip, 7z, cygwin and so forth. All these programs complain
>> that the file isnt a valid archive.

Maybe it got corrupted and another download may fix it.

Maybe Windows 7 thinks it knows better than you and is trying to protect
you from yourself by stopping you from doing what you want until you
adjust the properties of the tar.gz file to take all responsibility from
Windows so it doesn't have to worry.

Maybe you don't have Win7 installation privileges.

Once you get it opened, drill down until you see a directory containing
setup.py and drag that directory to a convenient temporary location. cd
into that temp dir and open a command prompt. At the command line do ...

python setup.py install

... which ought to put django into your site-packages directory.

You should not need cygwin unless you intend to compile python from
source. Django is python all the way down.

hth

Mike

Chris Matthews

unread,
Jan 27, 2011, 1:12:55 AM1/27/11
to django...@googlegroups.com
1) Generally "not a valid archive" means the file was corrupted during the download/copy or the download/copy did not complete. If you used ftp to copy the file and the file mode settings was ASCII (not binary) then you can have a corrupt file (because CR 0x0D gets converted to CRLF 0x0D0A). If that is the case then download it again. You can confirm it was corrupt if you keep the 1st version of your archive and compare it with the 2nd one (using DOS/Windows file compare command: comp file1 file2

2) You can see if Python's gzip likes your archive (from Python help):
import gzip
f = gzip.open('/home/joe/file.txt.gz', 'rb')
file_content = f.read()
f.close()

3) If it is a 64 bit/Windows 7 issue then:
Have you tried changing your 7z's compatibility settings to run it in an older mode? In explorer: Right-click on exe file -> properties -> compatibility -> "Run this program in compatibility mode for" and then choose Windows XP

Hi,

Thanks
Keshav Magge

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Reply all
Reply to author
Forward
0 new messages