如何在Windows 7企业版上安装python 3.2.3 [英] How to install python 3.2.3 on Windows 7 enterprise

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

问题描述

尽管我在Linux环境中很长时间以来一直很容易使用python,但即使在Windows环境中正确安装它也会遇到很大的麻烦。我希望这是一个值得讨论的问题,因为它不是一个直接的编程问题。
特别是,我有以下问题:

although I have been using python a long time very easily in a Linux environment, I have tremendous trouble to even install it correctly in a windows environment. I hope this is a question to be asked here, as it is not directly a programming question. Especially, I have the following problems:


  • 在命令行中,python不是可识别的命令。我是否必须自己手动设置Windows路径?如果是这样,怎么做?

  • When on the command line, python is not a recognized command. Do I have to set the Windows path manually myself? If so, how to do that?

启动python脚本时,是否应该使用python.exe或pythonw.exe?有什么区别?

When starting a python script, should this be done with python.exe or pythonw.exe? What is the difference?

我还尝试过多次安装ipython,它从未安装过(即使在遵循在此处启动ipythonenter链接描述主题。

I also tried to install ipython several times, it never got installed (even after following the starting ipythonenter link description here thread.

使用python.exe启动脚本时,一个窗口弹出并立即关闭。我看到了一些提示读取命令的提示,如果脚本中存在语法错误,这没有任何帮助。那么如何能够保持窗口打开,或者如何运行cmd.exe上的命令?

When starting a script with python.exe, a window pops up and closes immediately. I saw some hints in putting in a readline command, which is of no help if there is a syntax error in the script. So how to be able to keep the window open, or how to run the command on the cmd.exe?

感谢您对这些项目的任何帮助。

Thank you for any help on these items.

Alex

推荐答案

1)看这里: www.computerhope.com/issues/ch000549.htm

2)它已被回答,在询问之前总是尝试使用搜索:
pythonw.exe或python.exe?

2) It has already been answered, always try to use search before asking question: pythonw.exe or python.exe?

4)使用cmd.exe时只需使用 dir 导航到您的脚本文件夹以更改目录和 C: D:等。用于更换驱动器。然后只键入脚本名称来运行脚本。如果安装正确,Python会自动使用python启动.py脚本,因此您不必在脚本名称之前编写'python'。在cmd中运行时,窗口将保持打开状态。如果您希望它在双击启动脚本时保持打开状态,请使用等待用户输入的功能,请参阅此处如何保持Python脚本输出窗口打开?

4) When using cmd.exe just navigate to your script folder using dir for changing directories and C:,D:,etc. for changing drives. Then run script by typing just the script name. When installed correctly, Python automatically launches .py scripts with python, so you don't have to write 'python' before script name. When run in cmd, window will stay open. If you want it to stay open even when launching script with double-click, use function waiting for user input, see here How to keep a Python script output window open?

这篇关于如何在Windows 7企业版上安装python 3.2.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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