473,699 Members | 2,801 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1904
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.or g.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...@hotm ail.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*******@hotm ail.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...@hotm ail.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

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

Similar topics

16
1954
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 at it age 15 , but as some of you know, 3D games also offer edditors and script options , or rather programming choppers and dust clouds in scenes. Now beside my bad english, my problem is, that I like him to learn decent programming ------- sure...
1
1472
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
3045
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. Could not access network location %ALLUSERSPROFILE%\Start Menu\Programs\Administrative Tools. The folder exists and I've given full permission to it to everyone, so I don't think this is some kind of security issue. Here's the installation log:
1
1028
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 syncronization with remote database using merge replication. I found contradictory results while installing the application. I will mention here all the steps that I done while creating and installing setups. Result: Case 1: worked fine. ...
1
1925
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 seems to go fine, but Windows Update keeps telling me I need to install Service Pack 2. I have had this happen on other computers. Has anyone else experienced this? I'm wondering if it is installing it or not. I am investigating this, as I am...
2
4448
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 */ #include <time.h>
0
5772
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 future upgrade, and this module won't work (other Perl scripts in IIS6 are OK, just not this Interbase module, which is critical). The error comes from Dynaloader.pm file, which I've read through, and it says that it's a generic message about external...
11
20215
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 Vista? DETAILS: My setup: Dell Inspiron notebook with Vista Business edition My CD: Office 97 Professional (Service Release 1) Upgrade
5
2207
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 fine in Outlook. However if I use the setup generated in the setup project Release folder then even though setup runs and finishes, the Outlook Add-in does not appear in Outlook. What is the problem and how can I fix it? Thanks
0
8686
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8911
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8882
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5872
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.