Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MChrys opened this issue Jan 31, 2019 · 1 comment
Open

Comments

@MChrys
Copy link

MChrys commented Jan 31, 2019

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 .
@whcjimmy
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants