如何在Debian 7上的virtualenv中安装PyTango 7.2?

时间:2014-05-19 17:52:28

标签: python debian virtualenv tango

我可以使用:

在Debian 7上安装PyTango 7.2
sudo apt-get install python-pytango #installs on system, not virtualenv

但是,我需要在Python virtualenv中安装它。我创建了一个virtualenv并安装了以下先决条件,但它仍然没有编译:

sudo apt-get install python-pytango #so this anyway to install some prerequisites
sudo apt-get install libboost-python-dev #additional prerequisite for compilation
workon virtualenvname
easy_install PyTango-7.2.4.tar.gz

我明白了:

Processing PyTango-7.2.4.tar.gz
Running PyTango-7.2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZhyGFF/PyTango-7.2.4/egg-dist-tmp-psCoDv
/tmp/easy_install-ZhyGFF/PyTango-7.2.4/src/api_util.cpp:25:19: fatal error: tango.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

我猜我可以apt-get install一个额外的Tango套餐或两个套餐来制作tango.h,但哪一个?或者还有另一种方式吗?

1 个答案:

答案 0 :(得分:1)

您需要安装libtango7-dev软件包才能获取头文件。

您可以在https://www.debian.org/distrib/packages#search_contents

搜索Debian软件包的内容