【问题标题】:PyDev: Fatal error Python32\lib\io.py, line 60, in <module>PyDev:致命错误 Python32\lib\io.py,第 60 行,在 <module>
【发布时间】:2011-10-29 23:23:55
【问题描述】:

我在 PyDev 工作,突然之间,我不能再从 Eclipse 的 PyDev(2.1.0 版)中运行我的 python 程序了。

我运行过的任何 python 程序 Run As > Python Run 都失败了

Fatal Python error: Py_Initialize: can't initialize sys standard streams
Traceback (most recent call last):
  File "C:\Python32\lib\io.py", line 60, in <module>

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
  • 我仍然可以在命令行中运行我的程序,只有 Eclipse * 我只有一个版本的 Python (3.2)
  • 自上次运行以来,我没有更改我的 python 文件。它们采用 UTF-8 编码。
  • 自上次工作以来,我没有升级 Eclipse 和 PyDev
  • Python 安装在c:\python32 中(在环境变量PYTHONPATH 中定义)
  • 我的 XP 系统今天已更新 KB2536276 和

有什么想法吗?

【问题讨论】:

    标签: python eclipse python-3.x pydev eclipse-3.5


    【解决方案1】:

    我终于发现问题出在哪里了:我有一个名为 stat.py 的文件,这显然与 Lib/stat.py 产生了冲突

    不幸的是,错误消息非常模糊。 而且我只是不明白为什么 pyDev 的行为与 python.exe 不同

    【讨论】:

    • 我已经举报bug 577329
    • 你是如何解决这个问题的?
    • 我只是将我的模块重命名为不同的名称。
    猜你喜欢
    • 2012-08-03
    • 1970-01-01
    • 2012-11-05
    • 2012-08-30
    • 2014-01-15
    • 1970-01-01
    • 2015-10-15
    • 2023-01-31
    • 2017-01-28
    相关资源
    最近更新 更多