在Windows上安装phyton的问题 [英] problem at installing phyton on windows

查看:92
本文介绍了在Windows上安装phyton的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我在phyton上太新了。我已经安装了phyton.But当我写phyton

命令时,不幸的是,我无法运行我认为这是因为

设置路径。但是我无法解决。

你能帮忙吗?


另一件事是,当我双击.py文件时,有

项目表单和命令行。如何才能查看

项目?

谢谢......

解决方案

gslm写道:


嗨!

我在phyton上太新了。我已经安装了phyton.But当我写phyton

命令时,不幸的是,我可以'不要跑。我想这是因为

设置路径。但是我无法解决。

你能帮忙吗?



它是python当然,你应该打字。如果那不起作用

那么它可能是一个PATH问题,是的。


另一件事是,当我双击时.py文件,有

项目表单和命令行。如何才能查看

项目?



我认为您需要重命名.py文件,使其以.pyw结尾 -

这会阻止命令行窗口打开但是,如果你运行的是图形程序,那它只是有用的

。很明显。


Paul

25 Mart,20:16,Paul Boddie < p ... @ boddie.org.ukwrote:


gslm写道:


嗨!

我在phyton上太新了。我已经安装了phyton.But当我写phyton

命令时,不幸的是,我不能跑。我想它是因为

设置路径。但是我无法解决。

你能帮忙吗?



它是python当然,你应该打字。如果那不起作用

那么它可能是一个PATH问题,是的。


另一件事是,当我双击时.py文件,有

项目表单和命令行。如何才能查看

项目?



我认为你需要重命名.py文件,使其以.pyw结尾 -

这会阻止命令行窗口打开但是,如果你运行的是图形程序,那它只是有用的




Paul



首先,非常喜欢。

但我很抱歉。我不明白我必须为ruunnig phyton做什么

command.I从我的计算机的比例中删除路径。然后我打开

phyton的命令行。但是当我写下这些视图时这些视图:

跟踪<最近的呼叫最后一次>:

文件"< stdin>" ;; < module>中的第1行

NameError:未定义名称phyton

对不起,您可能认为我是漫画,但我无法纠正。


3月25日下午1:06,gslm < slm_gu ... @ hotmail.comwrote:


嗨!

我在phyton上太新了。我安装了phyton但是当我写phyton

命令时,不幸的是,我无法运行。我想这是因为

设置路径。但是我无法解决。

你能帮忙吗?



您需要设置所谓的PATH环境变量。请参阅:
http://www.computerhope.com/issues/ ch000549.htm

并添加C:\ python \(或安装python软件包的任何地方)

你的路径。
< blockquote class =post_quotes>
>

另一件事是,当我双击.py文件时,有

项目表格和命令line.How我可以提供只查看

项目吗?



我不太明白你在这里问的是什么。


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...

解决方案

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


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.


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.


这篇关于在Windows上安装phyton的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆