Python 3.4.3 (default, Jul 14 2016, 12:43:27) [GCC 4.9.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import nltk Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python3.4/site-packages/nltk/__init__.py", line 137, in <module> from nltk.stem import * File "/usr/lib64/python3.4/site-packages/nltk/stem/__init__.py", line 29, in <module> from nltk.stem.snowball import SnowballStemmer File "/usr/lib64/python3.4/site-packages/nltk/stem/snowball.py", line 24, in <module> from nltk.corpus import stopwords File "/usr/lib64/python3.4/site-packages/nltk/corpus/__init__.py", line 66, in <module> from nltk.corpus.reader import * File "/usr/lib64/python3.4/site-packages/nltk/corpus/reader/__init__.py", line 105, in <module> from nltk.corpus.reader.panlex_lite import * File "/usr/lib64/python3.4/site-packages/nltk/corpus/reader/panlex_lite.py", line 15, in <module> import sqlite3 ImportError: No module named 'sqlite3' >>> After rebuild python 3.4.3 with "sqlite" support, seems fine: Python 3.4.3 (default, Jul 17 2016, 20:53:11) [GCC 4.9.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import nltk >>> ps: I Didn't test other version of python or nltk.
commit 377565c1a18987990816397b373c2b7145e63ee6 (HEAD -> master, origin/master, origin/HEAD) Author: Labbe Corentin <clabbe.montjoie@gmail.com> Date: Thu Jul 27 14:33:34 2017 +0200 dev-python/nltk: need dev-lang/python with USE "sqlite" support Gentoo-Bug: 588992 Package-Manager: Portage-2.3.6, Repoman-2.3.1 Signed-off-by: Matthias Maier <tamiko@gentoo.org>