AttributeError: Module UMAP Has No Attribute UMAP The error occurs because the wrong module umap is used instead of umap-learn before importing umap.
This is a very obvious and confusing error. Because of this, this error is trending in the tech community. Now let’s see the solution for this error.
How To Fix AttributeError: Module ‘umap’ Has No Attribute ‘umap’?

Here are the steps on how to fix the AttributeError: Module UMAP Has No Attribute UMAP.
Time needed: 5 minutes.
How To Fix Module UMAP Has No Attribute UMAP.
- Step 1: Installing umap-learn
Here’s the command to install the umap-learn:
pip uninstall umap
pip install umap-learn
The above command will install the latest version of umap-learn. You can also specify the version using the same command.
If you install the umap-learn package using the conda package manager. You can also use the following command, but make sure both the conda and pip paths are properly configured.conda install -c conda-forge umap-learn
- Step 2: Changing The Import Statement.
We need to adjust the import statement accordingly.
import umap.umap_ as umap
This UMAP-LEARN package provides an interface for dimensionality reduction. This provides a dimensional visualization similar to the t-sne library. It also provides visualization of nonlinear dimensions.
Conclusion
We have completely solved the problem Module UMAP Has No Attribute UMAP. I hope this simple tutorial can help you a lot.
Recommendation
By the way if you encounter an error about importing libraries, I have here the list of articles made to solve your problem on how to fix errors in libraries.
- ModuleNotFoundError: No Module Named Pycocotools
- ERROR: Error:0308010c:Digital Envelope Routines::Unsupported
- Only Size-1 Arrays Can Be Converted To Python Scalars
- AttributeError: Module TensorFlow Has No Attribute Contrib
- ModuleNotFoundError: No Module Named ‘cv2’
Inquiries
If you have any questions or suggestions about this tutorial, please feel free to comment below.