ImportError: Cannot Import Name 'LatentDirichletAllocation' When Importing PCA
I keep getting the error: ImportError: cannot import name 'LatentDirichletAllocation' full traceback: Traceback (most recent call last): File '/home/path/to/file/pca.py', line 7,
Solution 1:
Broken installation.
Try:
For Python 2
pip uninstall scikit-learn
pip install -U scikit-learn==0.20.4
For Python 3
pip3 uninstall scikit-learn
pip3 install -U scikit-learn==0.21.3
Solution 2:
Had this problem, fully uninstalling and re-installing scikit-learn
via pip
fixed it.
Post a Comment for "ImportError: Cannot Import Name 'LatentDirichletAllocation' When Importing PCA"