Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
490 views
in Technique[技术] by (71.8m points)

I keep getting this error for the colorgram module in Python

I keep getting this error when I am working with colorgram:

Module 'colorgram' has no 'extract' member

Here is my code so far:

import colorgram

colors = colorgram.extract("hirst/hirst.jpg", 84) 

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Check if you have installed colorgram module. In PyCharm it is: PyCharm/Preferences/Project/Python interpreter If you cant see colorgram module there, use "+" to add it.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...