<分区>
我不断收到错误:
ImportError:无法导入名称“LatentDirichletAllocation”
完整回溯:
Traceback (most recent call last):
File "/home/path/to/file/pca.py", line 7, in <module>
from sklearn.decomposition import PCA
File "/home/user/.local/lib/python3.6/site-packages/sklearn/decomposition/__init__.py", line 19, in <module>
from ._online_lda import LatentDirichletAllocation
ImportError: cannot import name 'LatentDirichletAllocation'
当我尝试使用以下方法导入 PCA 时:
sklearn.decomposition 导入 PCA
我删除了 sklearn 文件夹,但仍然出现错误。