我正在尝试在'ubuntu 16.04 amd64'上安装opencv。
由于python版本,我在89%的编译时出现错误。
在我看来,这就是问题所在。
-- 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)
我试过的
我在所有软件包上都做了dpkg -s。
除了libpython-dev外,其他所有软件包都是2.7.6,我卸载了libpython-dev并从https://packages.debian.org/sid/libpython-dev安装了2.7.6版本。
我遇到了损坏的包裹错误,不得不退回去。
如何安装新的libpython2.7.a“2.7.6”版本?
最佳答案
您尝试过sudo apt-get install python2.7-dev
吗?
在64位Ubuntu 14.04(至少在我的计算机上)上,它将安装2.7.6版本。
关于python - 将 “libpython2.7.a”版本从2.7.5更改为2.7.6以安装opencv 2.4.9,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24259922/