我可以使用:
在Debian 7上安装PyTango 7.2sudo 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,但哪一个?或者还有另一种方式吗?
答案 0 :(得分:1)
您需要安装libtango7-dev软件包才能获取头文件。
搜索Debian软件包的内容