Wednesday, December 25, 2013

Re: Can't Install on Windows 8.1

On 26/12/2013 3:20am, Malik Rumi 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 use Windows 7 (and XP) and have not looked at Windows 8.

Windows 7 is designed for end-user operations rather than development.
If you are developing, Microsoft expects you will be using Visual Studio
or a competing IDE which respects the location choices made by VS.

The C:\Program files\ directory is "protected". I'm not sure what that
means other than end-users seeing the dialog boxes you report.

I installed Python outside C:\Program files. I created a C:\usr\bin for
that. Doing so solves the "protected" problem. My first recommendation
is to re-install Python where you can see it.

Secondly, create your own "home" directory and avoid having anything to
do with "My documents" for development. You can put shortcuts into "My
documents" which will take you to whatever directories take your fancy.

The objective is to stop Windows trying to help you.

Thirdly, while Virtualenv is brilliant and solves many problems, they
are future problems. On Windows, you cannot use VirtualenvWrapper
because no-one has ported it to Windows. VirtualenvWrapper smoothes out
all the Virtualenv drudgery and on Linux makes it a no-brainer. Just
install it and start using it from the beginning as you undoubtedly
would in future. So my recommendation is to avoid Virtualenv while you
are a beginner and plan to implement it when you need it.

My fourth recommendation is to acquire a Linux development machine and
plan to relocate development to it as soon as you need Virtualenv.

hth

Mike

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 <mailto:tlockhart1976@gmail.com>
> Sent: ‎12/‎24/‎2013 9:15 AM
> To: django-users@googlegroups.com <mailto: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
> <mailto: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
>> <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/
>> <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
>> <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
>> <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
>> <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 <http://www.mlhim.org/>
>> Like Us on FB: https://www.facebook.com/mlhim2
>> <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
>> <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
>> <mailto:django-users+unsubscribe@googlegroups.com>.
>> To post to this group, send email to django-users@googlegroups.com
>> <mailto:django-users@googlegroups.com>.
>> Visit this group at http://groups.google.com/group/django-users
>> <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
>> <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
>> <https://groups.google.com/groups/opt_out>.
>
> Tom Lockhart
> tlockhart1976@gmail.com <mailto:tlockhart1976@gmail.com>
>
>
> --
> 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
> <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
> <mailto:django-users%2Bunsubscribe@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com
> <mailto:django-users@googlegroups.com>.
> Visit this group at http://groups.google.com/group/django-users
> <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
> <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
> <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.

--
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/52BB5038.6050107%40dewhirst.com.au.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment