问候--
嘿,当我想运行这段代码时,我对google.colab有一个问题:
# Import Image from wand.image module
from wand.image import Image
# Read image using Image() function
with Image(filename ="/content/Hand.jpeg") as img:
# Generate noise image using spread() function
img.noise("poisson", attenuate = 0.9)
img.save(filename ="noise_hand.jpeg")这个命令的问题是:
from wand.image import Image它不停地说:
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-c8294d82387e> in <module>()
1 # Import Image from wand.image module
----> 2 from wand.image import Image这个问题只出现在colab中,我的意思是,例如,它可以在中正常工作。
请猜有人帮我解决这个问题,并提前感谢
注意:我已经安装并导入了魔杖库。
发布于 2022-02-24 12:27:45
尝试在代码之前在单元格中运行这些代码来安装ImageMagick。
!sudo apt install imagemagick
!pip install wandhttps://stackoverflow.com/questions/71241139
复制相似问题