PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, May 14, 2022

[FIXED] Why python can't find libavcodec.so.54 after Ubuntu update from 14.10 to 16.04?

 May 14, 2022     opencv, python, ubuntu     No comments   

Issue

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:

python blendImages.py 
Traceback (most recent call last):
  File "blendImages.py", line 2, in <module>
    import cv2
ImportError: libavcodec.so.54: cannot open shared object file: No such file or directory

you know some workaround this?


Solution

I think it may help if you install these packages.

sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libxvidcore-dev libx264-dev

and FFmpeg as well.



Answered By - Z. Li
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing