我尝试在 Ubuntu 12.04 上安装 OpenKinect 的 Python 包装器,但由于以下错误而无法安装:
$ sudo apt-get install python2.7-dev
python2.7-dev : Depends: libexpat1-dev but it is not going to be installed
Depends: libssl-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Python 包装器需要以下依赖项:
- Cython
- python-dev(上述错误)
- python-numpy
我如何安装 python-dev?
答案1
你可以通过运行这个命令来完成
sudo apt-get install python-dev