在 Windows 64 位机器上安装 pyenchant [英] Install pyenchant on a Windows 64-bit machine

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

问题描述

我想安装 PyEnchant 进行拼写检查,它需要在我的机器上安装 enchant.但是我能找到的所有 .exe 文件都是针对 win32 系统的.有没有其他方法可以在 Windows 64 位机器上安装它?

I want to install PyEnchant for spell checking and it requires enchant installed on my machine. But all the .exe files I could find were for win32 systems. Is there any other way to install it on Windows 64-bit machine?

推荐答案

目前没有 64 位版本的 Enchant.

Currently there is no 64-bit version of Enchant.

PyEnchant 可以在 Python 32 位下进行拼写检查 - 如果您必须使用 64 位 Python,那么您需要为 64 位构建 Enchant 和 PyEnchant 并自行解决任何问题.不幸的是,这并非微不足道.

PyEnchant can do your spelling check under Python 32 bit - if you have to use 64 bit Python then you will need to build Enchant and PyEnchant for 64 bit and resolve any issues yourself. This isn't trivial unfortunately.

请注意,32 位 Python 工作正常,对于大多数用途,在 64 位机器上,并且通常支持更多库.

Note that 32 bit Python works fine, for most usages, on 64 bit machines and in general more libraries are supported.

要在 Python 2.7(32 位)上安装,您需要做的就是:

For installing on Python 2.7 (32 bit) all you should need to do is:

pip install -U pyenchant

pip install -U pyenchant

如果您在此之后遇到问题,下一步是卸载并重新安装:

If you are having problems after this the next step is to uninstall and reinstall:

pip 卸载 pyenchantpip install -U pyenchant

pip uninstall pyenchant pip install -U pyenchant

希望这会有所帮助!

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

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