[
ghy...@gmail.com, 2016-03-08]
> Relatively new to Python and Linux, so apologies in advance.. but:
oh, that explains it. There are many bad and mean people out there that
tell innocent users to use sudo to overwrite files. It's all over
internet so I'm not surprised you were misled as well...
> Cannot seem to get Enchant running on my machine.
> I have Python 3.4.3 and Ubuntu 14.04.
>
> I get the following:
>
> Python 3.4.3 (default, Oct 14 2015, 20:33:09)
> [GCC 4.8.4] on linux
> Type "copyright", "credits" or "license()" for more information.
> >>> ================================ RESTART
> ================================
> >>> import random
> >>> import enchant
> Traceback (most recent call last):
> File "<pyshell#1>", line 1, in <module>
> import enchant
> ImportError: No module named 'enchant'
> >>>
>
> From the command line I used the following:
>
> sudo apt-get install libenchant1c2a
> sudo python -m pip install pyenchant
you should never ever use sudo with tools like pip, gem, npm or anything
else that is not apt or dpkg to install system files. This will break
your system! If your want pyenchant to be installed system-wide, just
`apt-get install python3-enchant` it. If for some reason that's not
enough for you (you need different version or given module is not
packaged) - use virtualenv or install to ~/.local. Do not ever
overwrite system files - it will break your system sooner or later (been
there several times thanks to my co-workers)
--
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl www.griffith.cc www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645