ModuleNotFoundError: No module named ‘umap‘和Cannot find reference ‘UMAP‘ in ‘imported module umap‘

ModuleNotFoundError: No module named ‘umap‘

  1. pip install umap-learn
  2. It is found that import umap still reports an error
  3. Solved after restarting the computer

Cannot find reference ‘UMAP’ in ‘imported module umap’

Replace from umap import UMAP with from umap.umap_ import UMAP, solve

Guess you like

Origin blog.csdn.net/qq_39804671/article/details/125903814