【问题标题】:PyEnchant raises WinError 193 on import, using Python 3.3.4PyEnchant 在导入时引发 WinError 193,使用 Python 3.3.4
【发布时间】:2014-09-22 22:14:18
【问题描述】:

当我尝试导入 PyEnchant 时,它会引发错误。我已经使用 pip 和他们在其网站上提供的 exe 安装和卸载了它。

只是一个通过命令提示符使用 Python 的示例:

    >>> import enchant
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "C:\Python33\lib\site-packages\enchant\__init__.py", line 92, in <module>

        from enchant import _enchant as _e
      File "C:\Python33\lib\site-packages\enchant\_enchant.py", line 102, in <module>
        raise WinError()
    OSError: [WinError 193] <no description>

【问题讨论】:

    标签: python windows pyenchant


    【解决方案1】:

    这样做的原因是 PyEnchant 包包含一个为 32 位版本的 Python 编译的库。在 64 位版本的 python 下运行时会抛出上述错误。

    我切换到使用 Python 32 位并且没有问题。

    来源:https://groups.google.com/forum/#!topic/pyenchant-users/5cCFthWE9ZM

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-02-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-20
      相关资源
      最近更新 更多