无法在python3中导入模块imageio

发布于 2025-01-09 07:06:33 字数 234 浏览 4 评论 0原文

使用 python3,我无法将 imageio 模块导入到我需要的 python 程序中,因为我尝试对我拥有的 PNG 图像列表进行动画处理。到目前为止,我已经尝试过:

“pip3 install imageio”既以我自己的身份运行,又以root身份运行。安装成功,但仍然出现错误,如主题行所示。我想我可以尝试“apt-get install(包名称)”,但需要确定 package_name。

欢迎任何想法 - TIA。

Using python3, I am unable to import the imageio module into my python program, which I need, as I try to animate a list of PNG images I have. Thus far I have tried:

"pip3 install imageio" both running as myself and as root. The install succeeded, but it still errors out as in the subject line. I suppose I could try "apt-get install (package name)", but need to determine the package_name.

Any ideas more than welcome - TIA.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

水晶透心 2025-01-16 07:06:33

尝试导入最新版本。

import imageio.v3 as iio

im = iio.imread('imageio:chelsea.png')
print(im.shape)  # (300, 451, 3)

参考https://imageio.readthedocs.io/en/stable/examples.html

Try importing the last version.

import imageio.v3 as iio

im = iio.imread('imageio:chelsea.png')
print(im.shape)  # (300, 451, 3)

ref https://imageio.readthedocs.io/en/stable/examples.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文