Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #68812 > unrolled thread

python installation on windows

Started byrborole06@gmail.com
First post2014-03-23 10:09 -0700
Last post2014-03-27 01:01 +0000
Articles 12 — 6 participants

Back to article view | Back to comp.lang.python


Contents

  python installation on windows rborole06@gmail.com - 2014-03-23 10:09 -0700
    Re: python installation on windows tad na <teddybubu@gmail.com> - 2014-03-23 10:33 -0700
      Re: python installation on windows tad na <teddybubu@gmail.com> - 2014-03-23 14:07 -0700
        Re: python installation on windows Mark H Harris <harrismh777@gmail.com> - 2014-03-23 22:28 -0500
          Re: python installation on windows Chris Angelico <rosuav@gmail.com> - 2014-03-24 14:35 +1100
            Re: python installation on windows rborole06@gmail.com - 2014-03-25 11:19 -0700
        Re: python installation on windows rborole06@gmail.com - 2014-03-25 11:18 -0700
    Re: python installation on windows "Rhodri James" <rhodri@wildebst.org.uk> - 2014-03-24 02:22 +0000
      Re: python installation on windows rborole06@gmail.com - 2014-03-25 11:16 -0700
        Re: python installation on windows rborole06@gmail.com - 2014-03-25 11:17 -0700
          Re: python installation on windows Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-25 19:00 +0000
          Re: python installation on windows "Rhodri James" <rhodri@wildebst.org.uk> - 2014-03-27 01:01 +0000

#68812 — python installation on windows

Fromrborole06@gmail.com
Date2014-03-23 10:09 -0700
Subjectpython installation on windows
Message-ID<04f1a2d3-4d34-4871-a845-1301cda1c19c@googlegroups.com>
Hi Everybody

actually i want to run python on web browser. I downloaded python and installed but i'm not able to run it in browser but it running using command prompt. so i trying to install mod_wsgi 3.4. So i downloaded precompiled version mod_wsgi-3.4.ap22.win32-py2.6 and copied mod_wsgi.so file to C:\wamp\bin\apache\Apache2.2.11\modules after i'm trying to run .\configure on path C:\Documents and Settings\Rahul\Desktop\mod_wsgi-3.4.ap22.win32-py2.6 but it giving me error that .\configure is not recognized as internal or external command.

So please suggest me what can i do for that, i'm so beginner to python and installing and configuring modules for apache.

Thanks
Rahul

[toc] | [next] | [standalone]


#68815

Fromtad na <teddybubu@gmail.com>
Date2014-03-23 10:33 -0700
Message-ID<c7619a46-3c79-4eb8-9383-0fb720d6c8f5@googlegroups.com>
In reply to#68812
On Sunday, March 23, 2014 12:09:09 PM UTC-5, rbor...@gmail.com wrote:
> Hi Everybody
> 
> 
> 
> actually i want to run python on web browser. I downloaded python and installed but i'm not able to run it in browser but it running using command prompt. so i trying to install mod_wsgi 3.4. So i downloaded precompiled version mod_wsgi-3.4.ap22.win32-py2.6 and copied mod_wsgi.so file to C:\wamp\bin\apache\Apache2.2.11\modules after i'm trying to run .\configure on path C:\Documents and Settings\Rahul\Desktop\mod_wsgi-3.4.ap22.win32-py2.6 but it giving me error that .\configure is not recognized as internal or external command.
> 
> 
> 
> So please suggest me what can i do for that, i'm so beginner to python and installing and configuring modules for apache.
> 
> 
> 
> Thanks
> 
> Rahul

To set up a web browser:
1.open a dos window
2.navigate to dir you want "served"
3.type "python -m SimpleHTTPServer 8888 &."

[toc] | [prev] | [next] | [standalone]


#68820

Fromtad na <teddybubu@gmail.com>
Date2014-03-23 14:07 -0700
Message-ID<73a660da-9dd8-4104-ae9c-ba1788ae1d60@googlegroups.com>
In reply to#68815
On Sunday, March 23, 2014 12:33:02 PM UTC-5, tad na wrote:
> On Sunday, March 23, 2014 12:09:09 PM UTC-5, rbor...@gmail.com wrote:
> > Hi Everybody
> > actually i want to run python on web browser. I downloaded python and installed but i'm not able to run it in browser but it running using command prompt. so i trying to install mod_wsgi 3.4. So i downloaded precompiled version mod_wsgi-3.4.ap22.win32-py2.6 and copied mod_wsgi.so file to C:\wamp\bin\apache\Apache2.2.11\modules after i'm trying to run .\configure on path C:\Documents and Settings\Rahul\Desktop\mod_wsgi-3.4.ap22.win32-py2.6 but it giving me error that .\configure is not recognized as internal or external command.

> > So please suggest me what can i do for that, i'm so beginner to python and installing and configuring modules for apache.

> > Thanks

> > Rahul
> To set up a web browser:
 
> 1.open a dos window
> 2.navigate to dir you want "served"
> 3.type "python -m SimpleHTTPServer 8888 &."
4. open browser and type http://localhost:8888/

[toc] | [prev] | [next] | [standalone]


#68843

FromMark H Harris <harrismh777@gmail.com>
Date2014-03-23 22:28 -0500
Message-ID<lgo8p6$92p$1@speranza.aioe.org>
In reply to#68820
On 3/23/14 4:07 PM, tad na wrote:
>> On Sunday, March 23, 2014 12:33:02 PM UTC-5, tad na wrote:
>> To set up a web browser:

>> 1.open a dos window
>> 2.navigate to dir you want "served"
>> 3.type "python -m SimpleHTTPServer 8888&."
>> 4. open browser and type http://localhost:8888/

That is very ~cool. I learn something around here everyday.

But, the OP did not ask how to run a web server on python (above); he 
asked how to run python on a web browser (I think he meant web server).
Anyway, the PSF runs python (the interpreter) from a web server (I can 
access the python interpreter from my browser from the PSF site).

How is that done simply, is possibly what the OP wants to know (me too).

marcus

[toc] | [prev] | [next] | [standalone]


#68846

FromChris Angelico <rosuav@gmail.com>
Date2014-03-24 14:35 +1100
Message-ID<mailman.8436.1395632129.18130.python-list@python.org>
In reply to#68843
On Mon, Mar 24, 2014 at 2:28 PM, Mark H Harris <harrismh777@gmail.com> wrote:
> Anyway, the PSF runs python (the interpreter) from a web server (I can
> access the python interpreter from my browser from the PSF site).
>
> How is that done simply, is possibly what the OP wants to know (me too).

That's a much MUCH harder thing to do than running Python code in your
web server, because of trust issues. I don't know how it's set up, but
there'll be something in there to protect the server against malicious
or accidental insanity (spinning with "while True: pass", trying to
read/write files, trying to execute commands, using up all of RAM with
"x = []\nwhile True: x.append(1)", etc, etc, etc). That's actually a
very hard problem to solve, not something where you can just say
"Here, this is how to run Python via a browser".

ChrisA

[toc] | [prev] | [next] | [standalone]


#69048

Fromrborole06@gmail.com
Date2014-03-25 11:19 -0700
Message-ID<0de4bfdf-5c85-418b-8c9c-95b7bbe57a6f@googlegroups.com>
In reply to#68846
On Sunday, 23 March 2014 19:35:19 UTC-8, Chris Angelico  wrote:
> On Mon, Mar 24, 2014 at 2:28 PM, Mark H Harris <harrismh777@gmail.com> wrote:
> 
> > Anyway, the PSF runs python (the interpreter) from a web server (I can
> 
> > access the python interpreter from my browser from the PSF site).
> 
> >
> 
> > How is that done simply, is possibly what the OP wants to know (me too).
> 
> 
> 
> That's a much MUCH harder thing to do than running Python code in your
> 
> web server, because of trust issues. I don't know how it's set up, but
> 
> there'll be something in there to protect the server against malicious
> 
> or accidental insanity (spinning with "while True: pass", trying to
> 
> read/write files, trying to execute commands, using up all of RAM with
> 
> "x = []\nwhile True: x.append(1)", etc, etc, etc). That's actually a
> 
> very hard problem to solve, not something where you can just say
> 
> "Here, this is how to run Python via a browser".
> 
> 
> 
> ChrisA

LoadModule wsgi_module modules/mod_wsgi.so
This line also i added but then also same problem

[toc] | [prev] | [next] | [standalone]


#69047

Fromrborole06@gmail.com
Date2014-03-25 11:18 -0700
Message-ID<9eaf90e2-55bb-4902-aac7-f515796641b9@googlegroups.com>
In reply to#68820
On Sunday, 23 March 2014 13:07:28 UTC-8, tad na  wrote:
> On Sunday, March 23, 2014 12:33:02 PM UTC-5, tad na wrote:
> 
> > On Sunday, March 23, 2014 12:09:09 PM UTC-5, rbor...@gmail.com wrote:
> 
> > > Hi Everybody
> 
> > > actually i want to run python on web browser. I downloaded python and installed but i'm not able to run it in browser but it running using command prompt. so i trying to install mod_wsgi 3.4. So i downloaded precompiled version mod_wsgi-3.4.ap22.win32-py2.6 and copied mod_wsgi.so file to C:\wamp\bin\apache\Apache2.2.11\modules after i'm trying to run .\configure on path C:\Documents and Settings\Rahul\Desktop\mod_wsgi-3.4.ap22.win32-py2.6 but it giving me error that .\configure is not recognized as internal or external command.
> 
> 
> 
> > > So please suggest me what can i do for that, i'm so beginner to python and installing and configuring modules for apache.
> 
> 
> 
> > > Thanks
> 
> 
> 
> > > Rahul
> 
> > To set up a web browser:
> 
>  
> 
> > 1.open a dos window
> 
> > 2.navigate to dir you want "served"
> 
> > 3.type "python -m SimpleHTTPServer 8888 &."
> 
> 4. open browser and type http://localhost:8888/

It's saying unable to connect to localhost

[toc] | [prev] | [next] | [standalone]


#68837

From"Rhodri James" <rhodri@wildebst.org.uk>
Date2014-03-24 02:22 +0000
Message-ID<op.xc7fkg2m5079vu@gnudebeest>
In reply to#68812
On Sun, 23 Mar 2014 17:09:09 -0000, <rborole06@gmail.com> wrote:

> Hi Everybody
>
> actually i want to run python on web browser.

Actually you don't.  You want to run Python on a web server, which  
fortunately is a good deal easier.

> I downloaded python and installed but i'm not able to run it in browser  
> but it running using command prompt. so i trying to install mod_wsgi  
> 3.4. So i downloaded precompiled version mod_wsgi-3.4.ap22.win32-py2.6  
> and copied mod_wsgi.so file to C:\wamp\bin\apache\Apache2.2.11\modules  
> after i'm trying to run .\configure on path C:\Documents and  
> Settings\Rahul\Desktop\mod_wsgi-3.4.ap22.win32-py2.6 but it giving me  
> error that .\configure is not recognized as internal or external command.
>
> So please suggest me what can i do for that, i'm so beginner to python  
> and installing and configuring modules for apache.

The ".\configure" thing is for Linux installations using autotools; it's  
not going to work on Windows.

I don't run Apache on Windows, so I'm just guessing from the documentation  
here, but the mod_wsgi "Installation on Windows" page says to "follow the  
instructions for loading mod_wsgi in the Quick Installation Guide."  The  
"Quick Installation Guide" page has instructions for editing the Apache  
config files.  No mention of running ".\configure" -- why are you doing  
that?  Try just editing the config files as the documentation suggests and  
see if that works.

-- 
Rhodri James *-* Wildebeest Herder to the Masses

[toc] | [prev] | [next] | [standalone]


#69045

Fromrborole06@gmail.com
Date2014-03-25 11:16 -0700
Message-ID<f154fd7a-30c2-4165-8c9c-6441f15a1fa4@googlegroups.com>
In reply to#68837
On Sunday, 23 March 2014 18:22:54 UTC-8, Rhodri James  wrote:
> On Sun, 23 Mar 2014 17:09:09 -0000, <rborole06@gmail.com> wrote:
> 
> 
> 
> > Hi Everybody
> 
> >
> 
> > actually i want to run python on web browser.
> 
> 
> 
> Actually you don't.  You want to run Python on a web server, which  
> 
> fortunately is a good deal easier.
> 
> 
> 
> > I downloaded python and installed but i'm not able to run it in browser  
> 
> > but it running using command prompt. so i trying to install mod_wsgi  
> 
> > 3.4. So i downloaded precompiled version mod_wsgi-3.4.ap22.win32-py2.6  
> 
> > and copied mod_wsgi.so file to C:\wamp\bin\apache\Apache2.2.11\modules  
> 
> > after i'm trying to run .\configure on path C:\Documents and  
> 
> > Settings\Rahul\Desktop\mod_wsgi-3.4.ap22.win32-py2.6 but it giving me  
> 
> > error that .\configure is not recognized as internal or external command.
> 
> >
> 
> > So please suggest me what can i do for that, i'm so beginner to python  
> 
> > and installing and configuring modules for apache.
> 
> 
> 
> The ".\configure" thing is for Linux installations using autotools; it's  
> 
> not going to work on Windows.
> 
> 
> 
> I don't run Apache on Windows, so I'm just guessing from the documentation  
> 
> here, but the mod_wsgi "Installation on Windows" page says to "follow the  
> 
> instructions for loading mod_wsgi in the Quick Installation Guide."  The  
> 
> "Quick Installation Guide" page has instructions for editing the Apache  
> 
> config files.  No mention of running ".\configure" -- why are you doing  
> 
> that?  Try just editing the config files as the documentation suggests and  
> 
> see if that works.
> 
> 
> 
> -- 
> 
> Rhodri James *-* Wildebeest Herder to the Masses

Thanks for your comment but i also edited httpd.conf file then my wamp not running
LoadModule php5_module "c:/wamp/bin/php/php5.3.0/php5apache2_2.dll"
This line i added on line 128 but nothing. Wampserver showing yellow.
I'm not getting what happening. I'm doing as per suggested in documentation

Thanks

[toc] | [prev] | [next] | [standalone]


#69046

Fromrborole06@gmail.com
Date2014-03-25 11:17 -0700
Message-ID<96fa02bf-7c6d-4b12-8791-d640d5910173@googlegroups.com>
In reply to#69045
On Tuesday, 25 March 2014 10:16:20 UTC-8, rbor...@gmail.com  wrote:
> On Sunday, 23 March 2014 18:22:54 UTC-8, Rhodri James  wrote:
> 
> > On Sun, 23 Mar 2014 17:09:09 -0000, <rborole06@gmail.com> wrote:
> 
> > 
> 
> > 
> 
> > 
> 
> > > Hi Everybody
> 
> > 
> 
> > >
> 
> > 
> 
> > > actually i want to run python on web browser.
> 
> > 
> 
> > 
> 
> > 
> 
> > Actually you don't.  You want to run Python on a web server, which  
> 
> > 
> 
> > fortunately is a good deal easier.
> 
> > 
> 
> > 
> 
> > 
> 
> > > I downloaded python and installed but i'm not able to run it in browser  
> 
> > 
> 
> > > but it running using command prompt. so i trying to install mod_wsgi  
> 
> > 
> 
> > > 3.4. So i downloaded precompiled version mod_wsgi-3.4.ap22.win32-py2.6  
> 
> > 
> 
> > > and copied mod_wsgi.so file to C:\wamp\bin\apache\Apache2.2.11\modules  
> 
> > 
> 
> > > after i'm trying to run .\configure on path C:\Documents and  
> 
> > 
> 
> > > Settings\Rahul\Desktop\mod_wsgi-3.4.ap22.win32-py2.6 but it giving me  
> 
> > 
> 
> > > error that .\configure is not recognized as internal or external command.
> 
> > 
> 
> > >
> 
> > 
> 
> > > So please suggest me what can i do for that, i'm so beginner to python  
> 
> > 
> 
> > > and installing and configuring modules for apache.
> 
> > 
> 
> > 
> 
> > 
> 
> > The ".\configure" thing is for Linux installations using autotools; it's  
> 
> > 
> 
> > not going to work on Windows.
> 
> > 
> 
> > 
> 
> > 
> 
> > I don't run Apache on Windows, so I'm just guessing from the documentation  
> 
> > 
> 
> > here, but the mod_wsgi "Installation on Windows" page says to "follow the  
> 
> > 
> 
> > instructions for loading mod_wsgi in the Quick Installation Guide."  The  
> 
> > 
> 
> > "Quick Installation Guide" page has instructions for editing the Apache  
> 
> > 
> 
> > config files.  No mention of running ".\configure" -- why are you doing  
> 
> > 
> 
> > that?  Try just editing the config files as the documentation suggests and  
> 
> > 
> 
> > see if that works.
> 
> > 
> 
> > 
> 
> > 
> 
> > -- 
> 
> > 
> 
> > Rhodri James *-* Wildebeest Herder to the Masses
> 
> 
> 
> Thanks for your comment but i also edited httpd.conf file then my wamp not running
> 
> LoadModule php5_module "c:/wamp/bin/php/php5.3.0/php5apache2_2.dll"
> 
> This line i added on line 128 but nothing. Wampserver showing yellow.
> 
> I'm not getting what happening. I'm doing as per suggested in documentation
> 
> 
> 
> Thanks

And again if i'm removing this line then wampserver works properly

[toc] | [prev] | [next] | [standalone]


#69054

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2014-03-25 19:00 +0000
Message-ID<mailman.8530.1395774068.18130.python-list@python.org>
In reply to#69046
On 25/03/2014 18:17, rborole06@gmail.com wrote:

Would you please use the mailing list 
https://mail.python.org/mailman/listinfo/python-list or read and action 
this https://wiki.python.org/moin/GoogleGroupsPython to prevent us 
seeing double line spacing and single line paragraphs, thanks.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

[toc] | [prev] | [next] | [standalone]


#69158

From"Rhodri James" <rhodri@wildebst.org.uk>
Date2014-03-27 01:01 +0000
Message-ID<op.xdcvtecm5079vu@gnudebeest>
In reply to#69046
On Tue, 25 Mar 2014 18:17:30 -0000, <rborole06@gmail.com> wrote:

>> Thanks for your comment but i also edited httpd.conf file then my wamp  
>> not running
>>
>> LoadModule php5_module "c:/wamp/bin/php/php5.3.0/php5apache2_2.dll"
>>
>> This line i added on line 128 but nothing. Wampserver showing yellow.
>>
>> I'm not getting what happening. I'm doing as per suggested in  
>> documentation
>>
>
> And again if i'm removing this line then wampserver works properly

I'm totally confused.  You started out asking about problems getting  
mod_wsgi to load, and now without any indication that you've actually got  
mod_wsgi to load you are asking a Python group about a PHP module.  Slow  
down, do one thing at a time and please don't assume that we can read your  
mind.

Also please read https://wiki.python.org/moin/GoogleGroupsPython and take  
appropriate action.  This post was unreadable when it got to me, and I  
nearly didn't bother putting in the effort to make it readable.

-- 
Rhodri James *-* Wildebeest Herder to the Masses

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web