How to Solve NameError: name 'rgb2hex' is not defined -- colormap
Solution: Import the 'rgb2hex' module
To Solve the error, add the following line to the top of your code.
from colormap import rgb2hex
For more information:
Python colormap rgb2hex