cemoody / lda2vec

MIT License
3.15k stars 629 forks source link

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

Open MChrys opened 5 years ago

MChrys commented 5 years ago

I build and install correctly `setup.py at the rooth, No problem with running script in lda2vec folder, but when i try to run lda2vec_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 .
whcjimmy commented 5 years ago

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.