LoginSignup
0
0

More than 5 years have passed since last update.

How to install py3exiv2

Last updated at Posted at 2015-12-07

boost

wget 'http://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.bz2?r=http%3A%2F%2Fwww.boost.org%2Fusers%2Fhistory%2Fversion_1_59_0.html&ts=1449484215&use_mirror=jaist'
tar --bzip2 -xf boost_1_59_0.tar.bz2
cd boost_1_59_0
./bootstrap.sh --with-libraries=python --with-python=python3 --with-python-version=3.4
sudo ./b2 install include="$VIRTUAL_ENV/include/python3.4m"

exiv2

wget ftp://rpmfind.net/linux/fedora/linux/development/rawhide/source/SRPMS/e/exiv2-0.25-1.fc23.src.rpm
sudo yum install graphviz
rpmbuild --rebuild exiv2-0.25-1.fc23.src.rpm
sudo rpm -i rpmbuild/RPMS/x86_64/exiv2-{0*,d*,l*}

pip

pip install py3exiv2
export LD_LIBRARY_PATH=/usr/local/lib/

python

import pyexiv2
data = pyexiv2.metadata.ImageMetadata('1.jpg')
data.read()
data['Iptc.Application2.Caption'].value

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0