【问题标题】:python.exe was crashed when I run python **.py from windows cmd当我从 windows cmd 运行 python **.py 时,python.exe 崩溃了
【发布时间】:2011-05-25 08:28:45
【问题描述】:

如果我在 win cmd 中输入 python 就可以了。但是当我从 cmd 运行 python main.py 时它崩溃了。

消息是:

python.exe has stopped working.

  Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: python.exe
  Application Version:  0.0.0.0
  Application Timestamp:    4c73f7b6
  Fault Module Name:    python26.dll
  Fault Module Version: 2.6.6150.1013
  Fault Module Timestamp:   4c73f79a
  Exception Code:   c0000090
  Exception Offset: 000c30a2
  OS Version:   6.1.7600.2.0.0.256.48
  Locale ID:    2052
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

【问题讨论】:

  • 您使用的是哪种 Python? CPython 对,但是什么版本?如果不确定尝试“python -V”
  • 您运行的是 32 位还是 64 位 Windows? Python 怎么样:是 32 还是 64?您是以管理员身份运行 Python 还是以普通用户身份运行 Python?
  • 我用的是32位的win7,Python也是32位的。普通用户
  • 我是否理解正确:当您简单地运行“python”时,它可以工作,但使用“python main.py”它会崩溃?如果是这样,我真的建议您检查硬盘驱动器是否有错误和/或重新安装 Python。之后,我们可以考虑是否还有其他问题。
  • 当你运行一个内容为print("hi")的helloworld.py时,问题是否仍然存在?

标签: python crash cmd


【解决方案1】:

事后分析:问题已在问题 cmets 中解决(重新安装 Python 解决了问题;我怀疑 Python 安装已以某种方式损坏)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-11
    • 1970-01-01
    相关资源
    最近更新 更多