Install pyenchant on a Windows 64-bit machine

后端 未结 4 1210
情深已故
情深已故 2021-02-06 02:16

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 wa

4条回答
  •  无人及你
    2021-02-06 02:40

    Going to leave this here for anyone who comes across it. There is a prebuilt 64-bit version of libenchant which is included in GIMP. By installing it and adding the libraries into your path, you can build pyenchant on a 64-bit version of Python.

    First install GIMP: https://www.gimp.org/downloads/

    From the CMD prompt either globally or within your Venv add the GIMP library location to your PATH

    SET PATH=%PATH%;C:\Program Files\GIMP 2\bin
    

    Then install pyenchant

    pip install pyenchant
    

    Hope this helps.

提交回复
热议问题