Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Eclipse Raspberry Pi 3远程调试导入错误:没有名为';蓝牙&x27;_Python_Eclipse_Bluetooth_Raspberry Pi_Remote Debugging - Fatal编程技术网

Python Eclipse Raspberry Pi 3远程调试导入错误:没有名为';蓝牙&x27;

Python Eclipse Raspberry Pi 3远程调试导入错误:没有名为';蓝牙&x27;,python,eclipse,bluetooth,raspberry-pi,remote-debugging,Python,Eclipse,Bluetooth,Raspberry Pi,Remote Debugging,我正在尝试对我的树莓皮3进行蓝牙扫描。我正在使用eclipse远程调试进行编码。Python版本是3.4 import sys sys.path.append(r'C:\Users\SachithW\Downloads\eclipse-java-mars-2-win32-x86_64\eclipse\plugins\org.python.pydev_5.1.2.201606231256\pysrc') import pydevd pydevd.settrace('192.168.1.11')

我正在尝试对我的树莓皮3进行蓝牙扫描。我正在使用eclipse远程调试进行编码。Python版本是3.4

import sys
sys.path.append(r'C:\Users\SachithW\Downloads\eclipse-java-mars-2-win32-x86_64\eclipse\plugins\org.python.pydev_5.1.2.201606231256\pysrc')

import pydevd
pydevd.settrace('192.168.1.11') # replace IP with address 
                            # of Eclipse host machine
import bluetooth
我已经在raspberry pi设备中安装了“Python bluez”和“Bluetooth”

 sudo apt-get install bluetooth
 sudo apt-get install bluez
 sudo apt-get install python-bluez
 pip install pybluez
但是当我运行代码时,它会给我这个错误信息

回溯(最近一次呼叫最后一次): 文件“D:\eclipse\RemoteSystemsTempFiles\192.168.1.4\home\pi\pi\u projects\BT\u multiple.py”,第6行,在 导入蓝牙 ImportError:没有名为“bluetooth”的模块

这个错误的原因是什么?如何修复它?

您是否执行了以下操作:

sudo apt-get install python-bluez
我在教程中也看到了这一点:

pip install pybluez

它不在你的名单上。又增加了一件要尝试的事情。