J'ai du mal à obtenir un module Python appelé Pyencherant pour installer sur mon Mac. J'utilise Python 2.7. Lorsque j'ouvre et exécutez le fichier Pyencher Setup.py, je reçois le message d'erreur suivant:
Traceback (most recent call last): File "/Applications/Python 2.7/pyenchant-1.6.5/setup.py", line 195, in <module> import enchant File "/Applications/Python 2.7/pyenchant-1.6.5/enchant/__init__.py", line 90, in <module> from enchant import _enchant as _e File "/Applications/Python 2.7/pyenchant-1.6.5/enchant/_enchant.py", line 133, in <module> raise ImportError("enchant C library not found") ImportError: enchant C library not found
3 Réponses :
Il existe de nombreuses façons d'installer Pyencher, par exemple avec MacPorts:
Ceci installera en outre des bibliothèques Enchanter, Aspell et Hunspell . Vous devez installer des dictionnaires séparément, pour obtenir une liste d'entre eux exécuter P> par exemple, installant le dictionnaire allemand P> Et vous avez terminé! P> (J'espère que vous avez trouvé votre réponse ailleurs en maintenant) p> p> Port Sudo Installez PY27-Enchantant CODE> P>
Installation d'Enchanter d'abord travaillé pour moi
Essayez ceci - cela a fonctionné pour moi sur Ubuntu.
sudo apt-get install libenchant1c2a
J'ai pu installer, mais je ne peux pas l'obtenir pour travailler sur un ordinateur portable Jupyter ... Stackoverflow.com/Questtions/44170766/...