I’ve update from Ubuntu 14.10 to 16.04 yesterday and right now I’ve tried to run my old python + opencv files but every file with opencv gives the same error:
JavaScript
x
6
1
python blendImages.py
2
Traceback (most recent call last):
3
File "blendImages.py", line 2, in <module>
4
import cv2
5
ImportError: libavcodec.so.54: cannot open shared object file: No such file or directory
6
you know some workaround this?
Advertisement
Answer
I think it may help if you install these packages.
JavaScript
1
3
1
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
2
sudo apt-get install libxvidcore-dev libx264-dev
3
and FFmpeg as well.