问题 :
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-31-0d9279bde351> in <module>
5 tasks_pca = pca.transform(array_of_tasks)
6
----> 7 mapper = umap.UMAP(n_components=3).fit(abstract_pca)
8 abstract_umap = mapper.transform(abstract_pca)
9 tasks_umap = mapper.transform(tasks_pca)
AttributeError: module 'umap' has no attribute 'UMAP'
解决方法:
pip uninstall umap
pip install umap-learn -i https://mirrors.ustc.edu.cn/pypi/web/simple
如果还出现问题:
ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
再解决
pip install --ignore-installed llvmlite