apt-get install libbluetooth-dev pip install pybluez # v2 apt-get install bluetooth bluez python-serial