简体   繁体   English

将“ libpython2.7.a”版本从2.7.5更改为2.7.6,以安装opencv 2.4.9

[英]change “libpython2.7.a” version to 2.7.6 from 2.7.5 to install opencv 2.4.9

I am trying to install opencv on 'ubuntu 16.04 amd64'. 我正在尝试在'ubuntu 16.04 amd64'上安装opencv。

I got an error at 89% compilation due to python version. 由于python版本,我在89%的编译时出现错误。 In my cmake this is the problem. 在我看来,这就是问题所在。

   -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.6", minimum required is "2.0") 
-- Could NOT find PythonLibs: Found unsuitable version "2.7.5", but required is exact version "2.7.6" (found /usr/local/lib/libpython2.7.a)

What I have tried: I did dpkg -s on all my packages. 我尝试过的方法:我在所有软件包上都做了dpkg -s。 except libpython-dev every other package is 2.7.6, I uninstalled libpython-dev and installed a 2.7.6 version of it from https://packages.debian.org/sid/libpython-dev . 除了libpython-dev,其他所有软件包都是2.7.6,我卸载了libpython-dev并从https://packages.debian.org/sid/libpython-dev安装了2.7.6版本。

I got broken packages error and had to revert back. 我遇到了损坏的包裹错误,不得不退回去。

How to install new libpython2.7.a "2.7.6" version? 如何安装新的libpython2.7.a“ 2.7.6”版本?

Have you tried sudo apt-get install python2.7-dev ? 您是否尝试过sudo apt-get install python2.7-dev On Ubuntu 14.04 64-bit (on my machine at least), it installs the 2.7.6 version. 在64位Ubuntu 14.04(至少在我的计算机上)上,它将安装2.7.6版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM