Wednesday, December 25, 2013

Re: Can't Install on Windows 8.1

It has been 4 hours so just so you don't think you are being ignored.  :-)

Basically, this is why I haven't used Windows since Win98.  It wants to take control of everything and guess at what I want.  I wish you luck in solving your Windows issues. 

It is okay for end-user apps like running a browser but I would never use it for development.  I know that there are pepople here taht do and maybe they can help.

Cheers,
Tim



On Wed, Dec 25, 2013 at 2:20 PM, Malik Rumi <malik.a.rumi@gmail.com> wrote:
Ok, everything went smoothly and beautifully as promised. I got successful install messages for pip, distribute, virtualenv and django. So first, thank you both very much. 

However, I seem to be stuck again. I am not sure how to get from my new virtualenv to django, and windows seems just as confused. When I tried startproject, windows suddenly wanted to know if I wanted to keep using python to open .py files, or use notepad or some other program? I said python, and then it hiccuped, like it was restarting Explorer, and the command line went back to the prompt with no evidence it executed the startproject command. I looked in the directory, but saw nothing to indicate there was a project started. Of course, never having worked with either django or virtualenv before, I could have missed it. So I tried again.

As before, a dialog window opened asking me what program I wanted to use. While I was taking a screenshot to save for these notes, the dialog went away and the cmd line reported back that access was denied.

Then I tried get_version and was told there was no module named django, even though just a few lines earlier I was told django was successfully installed.

Here is that last portion from my command line window:

C:\Program Files\Ampps\python\Scripts>project_sl1\Scripts\activate

(project_sl1) C:\Program Files\Ampps\python\Scripts>pip install django

Downloading/unpacking django

  Downloading Django-1.6.1.tar.gz (6.6MB): 6.6MB downloaded

  Running setup.py egg_info for package django

    warning: no previously-included files matching '__pycache__' found 

under dir

ectory '*'

    warning: no previously-included files matching '*.py[co]' found 

under direct

ory '*'

Installing collected packages: django

  Running setup.py install for django

    warning: no previously-included files matching '__pycache__' found 

under dir

ectory '*'

    warning: no previously-included files matching '*.py[co]' found 

under direct

ory '*'

Successfully installed django

Cleaning up...


(project_sl1) C:\Program Files\Ampps\python\Scripts>django-admin.py 


startproject

 project_sl1


(project_sl1) C:\Program Files\Ampps\python\Scripts>django-admin.py 


startproject

 project_sl1

Access is denied.


(project_sl1) C:\Program Files\Ampps\python\Scripts>

Just to be clear, I do want to get past this but I also want to understand what is going on, so if you can do both, that would be great. Do I need to change directories? Try opening a django project thrui the django gui? Where / how would I do that? Everything I have done so far has been thru the windows command line. 

Thanx.
- -

On Tuesday, December 24, 2013 11:48:22 AM UTC-6, Malik Rumi wrote:
Boy, the speedy responses on this thread are great! I can't wait to get home from work so I can put this advice into practice. And now you know what I want for Christmas 😄 - a working installation of django and python to play with.

From: Tom Lockhart
Sent: ‎12/‎24/‎2013 9:15 AM
To: django-users@googlegroups.com
Subject: Re: Can't Install on Windows 8.1


On 2013-12-24, at 6:56 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:

Thank you. One more question before I dive in: I already have python installed. Are you suggesting I remove it and start over?

No. What you will find is that virtualenv will pick up whatever python it finds and package it in a new self-contained area. At that point you will have full control over what additional things get installed. But it needs a python installation somewhere else to get started.

If you have put a bunch of packages into your native python installation and are not sure what you have, you may want to re-install just to get a clean basic installation. But I haven't had to do that and would not bother unless you see other issues.

hth

                    - Tom


On Tuesday, December 24, 2013 8:04:08 AM UTC-6, Timothy W. Cook wrote:
Since it appears that you are not too familiar with Python, this may help:
http://www.youtube.com/watch?v=d_W02OwHa38

Using a virtual environment and pip will a long way to solving many of your issues.   It is considered best practice 'for a reason'.

https://zignar.net/2012/06/17/install-python-on-windows/

Then, install django and other requirements inside your virtualenv.



HTH,
Tim




On Tue, Dec 24, 2013 at 11:35 AM, Malik Rumi <malik....@gmail.com> wrote:
Hello. This is my first post. The attached Word document tracks everything I have done this morning to get this to work. 

Your insights, guidance, and assistance is greatly appreciated. 

--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/dec70718-1de8-403d-9321-fbbfd760e88d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
MLHIM VIP Signup: http://goo.gl/22B0U
============================================
Timothy Cook, MSc           +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

--
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/952e8e35-bb11-4c66-aca8-d25585606d76%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/BAW1U7oKdgM/unsubscribe.
To unsubscribe from this group and all its topics, 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/E65C7D3B-1493-44F5-AC2C-516E27912E60%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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/a3c44807-6e55-494c-a6e8-4d5de5305d50%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
MLHIM VIP Signup: http://goo.gl/22B0U
============================================
Timothy Cook, MSc           +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

--
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/CA%2B%3DOU3XdCr%3DKApA36OP6S78hURjdyDhTQPuQswB6%2BQiX5xHDEg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment