简体   繁体   中英

ModuleNotFoundError: No module named 'pyLDAvis' in anaconda spyder

I am using anaconda sypder and installed pyLDAvis module using command:

conda install -c ehremo pyldavis

Even after successful installation it shows error

ModuleNotFoundError: No module named 'pyLDAvis'" in anaconda spyder

while using command import pyLDAvis . Please help.

conda install -c memex pyldavis

This command didn't work for me

But this one worked

conda install -c conda-forge pyldavis

Here you go, this uses anaconda for instillation

conda install -c memex pyldavis

That fixed it on my end and can use pyLDAvis

I had same problems with this module

First try:

conda update anaconda

if you use jupyter notebook and you had "No module named.." try:

pip install --upgrade pip

pip install --upgrade jupyter notebook

a next

pip install pyLDAvis

I completed these steps and I could use jupter console to check

import pyLDAvis

pyLDAvis.__version__

On Jupyter notebook, following worked for me

!python -m pip install -U pyLDAvis

Alternatively, run Anaconda prompt as administrator and execute the following

(base) C:\Windows\system32>conda install -c conda-forge pyLDAvis

try this in Anaconda prompt:

conda install -c conda-forge pyLDAvis

then type y in the following section:

The following packages will be UPDATED:

Proceed ([y]/n)? y

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM