473,387 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

problem at installing phyton on windows

Hi!
I'm too new on phyton.I have installed phyton.But when I write phyton
command, unfortunately, i can't run.I suppose that it is bacause of
setting path.But i can't solve.
Can you help?

Another thing is, when i double click the .py file, there are the
project form and the command line.How can i provide to view only the
project?
Thanks...

Mar 25 '07 #1
11 1884
gslm wrote:
Hi!
I'm too new on phyton.I have installed phyton.But when I write phyton
command, unfortunately, i can't run.I suppose that it is bacause of
setting path.But i can't solve.
Can you help?
It's "python" you should be typing, of course. If that doesn't work
then it may be a PATH issue, yes.
Another thing is, when i double click the .py file, there are the
project form and the command line.How can i provide to view only the
project?
I think you need to rename the .py file so that it ends with .pyw -
this stops the command line window from opening, but it's only useful
if you are running a graphical program, obviously.

Paul

Mar 25 '07 #2
On 25 Mart, 20:16, "Paul Boddie" <p...@boddie.org.ukwrote:
gslm wrote:
Hi!
I'm too new on phyton.I have installed phyton.But when I write phyton
command, unfortunately, i can't run.I suppose that it is bacause of
setting path.But i can't solve.
Can you help?

It's "python" you should be typing, of course. If that doesn't work
then it may be a PATH issue, yes.
Another thing is, when i double click the .py file, there are the
project form and the command line.How can i provide to view only the
project?

I think you need to rename the .py file so that it ends with .pyw -
this stops the command line window from opening, but it's only useful
if you are running a graphical program, obviously.

Paul
First, thaks a lot.
But I'm sorry.I haven't understood what i must do for ruunnig phyton
command.I delete path from proportiesof my computer.Then i open
command line of phyton.But when i write phyton these view below:
Traceback<most recent call last>:
File "<stdin>"; line 1 in <module>
NameError: name phyton is not defined
Sorry may be you think i'm comic but i am not be able to correct.

Mar 25 '07 #3
On Mar 25, 1:06 pm, "gslm" <slm_gu...@hotmail.comwrote:
Hi!
I'm too new on phyton.I have installed phyton.But when I write phyton
command, unfortunately, i can't run.I suppose that it is bacause of
setting path.But i can't solve.
Can you help?
You need to set what is called your PATH environment variable. See:
http://www.computerhope.com/issues/ch000549.htm
and add C:\python\ (or wherever your python package is installed) to
your PATH.
>
Another thing is, when i double click the .py file, there are the
project form and the command line.How can i provide to view only the
project?
I don't quite understand what you're asking here.

Mar 25 '07 #4
En Sun, 25 Mar 2007 15:40:14 -0300, gslm <sl*******@hotmail.comescribió:
But I'm sorry.I haven't understood what i must do for ruunnig phyton
command.I delete path from proportiesof my computer.Then i open
command line of phyton.But when i write phyton these view below:
Traceback<most recent call last>:
File "<stdin>"; line 1 in <module>
NameError: name phyton is not defined
Sorry may be you think i'm comic but i am not be able to correct.
So, you *already* have started the Python interpreter. You don't have to
type any more thing to start!
If you see a console like this:

Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>>
you are inside the Python interpreter.
You may use IDLE, an integrated editor+debugger+other things (Start menu,
All programs, Python, Idle).
Or install the Python for Windows extensions, by Mark Hammond, that comes
with its own editor (PythonWin) and may be better suited for a Windows
environment https://sourceforge.net/projects/pywin32/
Try reading some introductory texts. The book "Dive into Python" may be
useful: www.diveintopython.org
There is a wiki with more resources: http://wiki.python.org/moin/

--
Gabriel Genellina

Mar 25 '07 #5
gslm schrieb:
First, thaks a lot.
But I'm sorry.I haven't understood what i must do for ruunnig phyton
command.I delete path from proportiesof my computer.Then i open
command line of phyton.But when i write phyton these view below:
Traceback<most recent call last>:
File "<stdin>"; line 1 in <module>
NameError: name phyton is not defined
Such an answer comes from Python, I think you must already be in the
interactive interpreter. Do you see something similar to this, with your
cursor after the ">>>"?

Python 2.5 (r25:51908, Oct 6 2006, 15:22:41)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
At this point you can enter valid Python statements, but you can't call
Python from Python (wouldn't make sense anyway).

I'd look at this page first:

http://www.python.org/about/gettingstarted/

HTH
Hertha
Mar 25 '07 #6
Please, can you read again?
Yes, I understand that in phyton interpreter, i can't call phyton
command.Thanks...

But how can i run '.py' files from this command line?I wanted to use
the phyton command for this.

When i click a py extended file, for example calendar.py in lib
directory, file opens, then suddenly close,except graphical ones.Why?
How can i see the results?

And where can i learn which library must i import for whic class?

Sorry, i ask much:(But after learning these starting knowledeges, i
read tutorials, manuals etc.
But now i haven't found my answers yet.
Regards...

Mar 25 '07 #7
On Mar 25, 6:23 pm, "gslm" <slm_gu...@hotmail.comwrote:
Please, can you read again?
Yes, I understand that in phyton interpreter, i can't call phyton
command.Thanks...

But how can i run '.py' files from this command line?I wanted to use
the phyton command for this.

When i click a py extended file, for example calendar.py in lib
directory, file opens, then suddenly close,except graphical ones.Why?
How can i see the results?

And where can i learn which library must i import for whic class?

Sorry, i ask much:(But after learning these starting knowledeges, i
read tutorials, manuals etc.
But now i haven't found my answers yet.
Regards...
For god's sake. It's PYTHON, not PHYTON.

Use IDLE and run your files from there. That way you won't have to
mess with the hideous windows console.

However, if you really want to use the windows console, keep in mind
that it will always close automatically when the program ends. That is
true for Python, C, whatever, unless it was open before. So, Start-
>run, type "cmd" then run python filename.py. If that does not work,
it's because the path is not set correctly.

And that's probably because you keep mispelling Python. See below:

" But I'm sorry.I haven't understood what i must do for ruunnig phyton
command.I delete path from proportiesof my computer.Then i open
command line of phyton.But when i write phyton these view below:
Traceback<most recent call last>:
File "<stdin>"; line 1 in <module>
NameError: name phyton is not defined "
^^^^^^^

Obviously, "Phyton" will never be defined.
Stephen


Mar 25 '07 #8
gslm wrote:
Please, can you read again?
Yes, I understand that in phyton interpreter, i can't call phyton
command.Thanks...

But how can i run '.py' files from this command line?I wanted to use
the phyton command for this.

When i click a py extended file, for example calendar.py in lib
directory, file opens, then suddenly close,except graphical ones.Why?
How can i see the results?

And where can i learn which library must i import for whic class?

Sorry, i ask much:(But after learning these starting knowledeges, i
read tutorials, manuals etc.
But now i haven't found my answers yet.
Regards...
http://www.python.org/doc/faq/window...-under-windows

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Recent Ramblings http://holdenweb.blogspot.com

Mar 25 '07 #9
gslm wrote:
Please, can you read again?
Yes, I understand that in phyton interpreter, i can't call phyton
command.Thanks...

But how can i run '.py' files from this command line?I wanted to use
the phyton command for this.
Once you are in the Python interpreter you can run Python files, but
the best way to run files is one of the following:

* From the command prompt (DOS prompt); type something like this:

python file.py

* In the file manager (Windows Explorer, not Internet Explorer), open/
run file.py.

If you *really* want to run files in the interpreter, you can do
something like this:

execfile("file.py")
When i click a py extended file, for example calendar.py in lib
directory, file opens, then suddenly close,except graphical ones.Why?
How can i see the results?
For things that don't open windows you really need to run them from
the command prompt.
And where can i learn which library must i import for whic class?
Look at the library reference: each of the listed libraries are named,
and for the calendar module you'd put this in your program (or type it
at the Python prompt):

import calendar

Note that in Python programs or at the Python prompt you do not refer
to it as calendar.py or C:\Python24\Lib\calendar.py (or wherever it
lives): Python knows where to look and knows to add the .py on the end
of the file.

Note also that this doesn't run the calendar module, so it isn't quite
the same as running the calendar.py file as described above.
Sorry, i ask much:(But after learning these starting knowledeges, i
read tutorials, manuals etc.
But now i haven't found my answers yet.
I hope this helps a little.

Paul

Mar 25 '07 #10
>
Obviously, "Phyton" will never be defined.
Indeed I remember in the climactic showdown between Phyton and the
rest of the gamma ranger FooDroids and he kept doing the mega kick
move. and I was thinking wow Phyton will never be defined, he will
just keep kicking ass.

I hear they're gonna make a Phyton Commandant movie.

Cheers,
Bryan Rasmussen
Mar 26 '07 #11
On 26 Mart, 00:50, "Stephen Eilert" <spedr...@gmail.comwrote:
On Mar 25, 6:23 pm, "gslm" <slm_gu...@hotmail.comwrote:


Please, can you read again?
Yes, I understand that in phyton interpreter, i can't call phyton
command.Thanks...
But how can i run '.py' files from this command line?I wanted to use
the phyton command for this.
When i click a py extended file, for example calendar.py in lib
directory, file opens, then suddenly close,except graphical ones.Why?
How can i see the results?
And where can i learn which library must i import for whic class?
Sorry, i ask much:(But after learning these starting knowledeges, i
read tutorials, manuals etc.
But now i haven't found my answers yet.
Regards...

For god's sake. It's PYTHON, not PHYTON.

Use IDLE and run your files from there. That way you won't have to
mess with the hideous windows console.

However, if you really want to use the windows console, keep in mind
that it will always close automatically when the program ends. That is
true for Python, C, whatever, unless it was open before. So, Start->run, type "cmd" then run python filename.py. If that does not work,

it's because the path is not set correctly.

And that's probably because you keep mispelling Python. See below:

" But I'm sorry.I haven't understood what i must do for ruunnig phyton
command.I delete path from proportiesof my computer.Then i open
command line of phyton.But when i write phyton these view below:
Traceback<most recent call last>:
File "<stdin>"; line 1 in <module>
NameError: name phyton is not defined "
^^^^^^^

Obviously, "Phyton" will never be defined.

Stephen- Alıntıyı gizle -

- Alıntıyı göster -
Thanks to all of you!Sorry, I must be more careful!
You're right, my problem is of course this:writing the word python
wrong.
Now it's ok!Thanks again and again!

Mar 26 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: P.C. | last post by:
Hi My son like many youngsters been around computers, fast online games, he acturly for main part learned to read and write ,beside his second language english , and may I say he is quite good...
1
by: mr. ice | last post by:
Hi Phyton guru out there, I am looking for a tools to translate some code written in c++ to phyton. I understand there may not be a perfect match but any suggestion is welcome. mr. Ice
2
by: feman | last post by:
I'm trying to install the dotnet framework 1.1 on a Windows 2000 Pro, SP 4 box. I've downloaded dotnetfx.exe and am installing from c:\temp. This is the error message that I get: Error 1606....
1
by: santhosh_176 | last post by:
:I Created a Pocket PC application for iPAQ 5450. Every thing went fine even installer creation. I could run the setup and install it into the actual device and worked fine. The application enables...
1
by: AspDotNetDeveloper | last post by:
Hello, I have Windows 2003 Server with .Net Framework 1.1 installed (part of the OS), and have used Windows Update to install the Service Pack 2 (the only way you can install it). The install...
2
by: ajikoe | last post by:
Hi, I tried to follow the example in swig homepage. I found error which I don't understand. I use bcc32, I already include directory where my python.h exist in bcc32.cfg. /* File : example.c...
0
by: OverTheTop | last post by:
All the usual Newbie stuff applies... I have a Windows2000 Server with ActivePerl and a module (DBD-Interbase) that worked fine. Trying to duplicate the environment on Windows2003 Server for...
11
by: Don | last post by:
QUESTIONS: 1. Has anyone figured out how to successfully install the Office 97 Pro Service Release 2 patch in Vista? 2. Has anyone successfully installed an Office 97 Pro CD (SR2 version) in...
5
by: John | last post by:
Hi I have an Outlook add-in solution which includes a setup project. If I install the Outlook add-in by right clicking on the setup project and sleeting Install then the add-in gets installed...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.