我一直在尝试运行以下代码:
exif = pyexiv2.ImageMetadata(image_file)
exif.read()
在Python3.7.0上,它会产生一个错误AttributeError: module 'pyexiv2' has no attribute 'ImageMetadata'
我以前没有使用过pyexiv2,但是示例here与我的类似,我认为它工作得很好。我也不确定pyexiv2是否完全支持Python 3。
请告知
您可以找到我正在使用的脚本here
Tags:
本模块使用
但是您必须安装
py3exiv2
而不是pyexiv2
,您可以在Tutorial的第一行看到它但是它使用了一些
C/C++
代码,并且需要C/C++
中的其他模块在Linux上,我必须安装
后来
(不是
pyexiv2
)见第Developers页的
Dependences
在Linux上,我安装了编译器
C/C++
-gcc
,但您可能需要在其他系统上安装它相关问题 更多 >
编程相关推荐