question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: umap.plot requires matplotlib, datashader, colorcet and holoviews to be installed

See original GitHub issue

Install umap using below commands:

pip install umap-learn
pip install "umap-learn[plot]"

and they run successfully.

but when I import umap.plot, it occurs:

image

But actually, these packages matplotlib, datashader, colorcet and holoviews have been installed.

so what I should do to fix this error?

Big thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

12reactions
Abhilash-Korraprolucommented, Aug 4, 2020

Hi!

A suggestion, not solution. I got this error in my jupyter notebook as well. The problem was with importing holoviews. But since, thats not your issue: This is the code that from which the error is being raised. You could try executing this code and see if you could find any error. It may not solve your problem, but give it a shot.

import pandas as pd import datashader as ds import datashader.transfer_functions as tf import datashader.bundling as bd import matplotlib.pyplot as plt import colorcet import matplotlib.colors import matplotlib.cm import bokeh.plotting as bpl import bokeh.transform as btr import holoviews as hv import holoviews.operation.datashader as hd

1reaction
rn123commented, May 22, 2020

I had the same issue and had to install the imgcat package as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve the error, "module umap has no attribute ...
To use UMAP you need to install umap-learn not umap . ... And then in your python code make sure you are importing...
Read more >
解决ImportError: umap.plot requires pandas matplotlib datashader ...
ImportError : umap.plot requires pandas matplotlib datashader bokeh holoviews scikit-image and colorcet to be installed问题原因:我在使用umap库时发现报出该 ...
Read more >
umap/plot.py | Coveralls - Test Coverage History & Statistics
1 import numpy as np 1× 2 import numba 1× 3 from warnings import warn 1× 5 try: 1×
Read more >
Geoviews ImportError: Numba needs NumPy 1.21 or less
I am using the Arm MAC with python version 3.9. ... It would help to know what version of GeoViews you have and...
Read more >
umap.plot requires pandas matplotlib ... - Fix Exception
Full details: ImportError: umap.plot requires pandas matplotlib datashader bokeh holoviews scikit-image and colorcet to be installed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found