I have installed a couple of libraries ( Piexif
, pyexiv2
) from terminal with the following commands:
sudo pip install piexif
sudo apt-get install python-pyexiv2
Therefore, your imports are like this
import piexif
import pyexiv2
But he throws me an error, he did not find the module. I decided to try importing it from terminal with
sudo python
import piexif
import pyexiv2
And it did not throw errors.
I have read and in some cases it is a problem of PATH
, so I executed this code:
#!/usr/bin/env python
import sys
for path in sys.path:
print path
Which throws me this:
/ home / yehad / Desktop / HardDrones / Project identification of vegetation / Tests / Inspire /usr/local/lib/python2.7/dist-packages/thinning-1.2.3-py2.7-linux-x86_64.egg /usr/lib/python2.7 /usr/lib/python2.7/plat-x86_64-linux-gnu /usr/lib/python2.7/lib-tk /usr/lib/python2.7/lib-old /usr/lib/python2.7/lib-dynload /home/yehad/.local/lib/python2.7/site-packages /usr/local/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages/PILcompat /usr/lib/python2.7/dist-packages/gtk-2.0
And the libraries are just in /home/yehad/.local/lib/python2.7/site-packages
, so that would not be the problem.