简体   繁体   中英

How do I install pybonjour on Ubuntu 14.04

Getting this error ImportError: No module named pybonjour

How do I install pybonjour on Ubuntu 14.04.

Tried sudo apt-get install pybonjour and pip install pybonjour , no luck.

  1. Install libavahi-compat-libdnssd1

     sudo apt-get install libavahi-compat-libdnssd1 
  2. Download pybonjour and unpack it with

     tar zxf pybonjour-1.1.1.tar.gz 
  3. Installation

     cd pybonjour-1.1.1 sudo python setup.py install 
  4. Use

     import pybonjour 

Also see https://code.google.com/p/pybonjour/ for why you need to install libavahi-compat-libdnssd1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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