lda2vec icon indicating copy to clipboard operation
lda2vec copied to clipboard

Error: no module named lda2vec - >Unable to run twenty newsgroup example

Open MChrys opened this issue 7 years ago • 1 comments

I build and install correctly ``setup.pyat the rooth, No problem with running script in lda2vec folder, but when i try to runlda2vec_run.py` in twenty news group example folder it return :

  File "lda2vec2.7/lda2vec-master/examples/twenty_newsgroups/data/preprocess.py", line 17, in <module>
    from lda2vec import preprocess, Corpus
ImportError: No module named lda2vec```
Add the path with sys.path.append() doesn't change anything .

MChrys avatar Jan 31 '19 14:01 MChrys

check if lda2vec is in /usr/lib/python[version]/dist-packages or /usr/local/lib/python[version]/dist-packages. If not, try to build and install using the following command again. python setup.py build install

Otherwise, you can import lda2vec using the full path.

whcjimmy avatar Feb 11 '19 01:02 whcjimmy