无法导入已安装的模块(通过 pip)

Installed module (via pip) can't be imported

OS: Windows 10 64 位
语言: Python 3.5.2 (Anaconda 4.2.0)
问题模块: PyBluez 0.22 (PyBluez-0.22-cp35-none-win_amd64.whl)

当我在安装后尝试导入 PyBluez 时,即:

我收到以下错误:

我通过 pip 更新了 Spyder,我也尝试通过 pip 卸载并重新安装模块:

编辑:

我只安装了python 3.5.2:

根据评论。您为 python3.5.2 安装了 python 软件包 PyBluez,但 spyder 使用的是 3.6.

This answer

Press CTRL+SHIFT+ALT+P to open the Preferences window. Within this window, select the Console item on the left, then the Advanced Settings tab. The path to the Python executable will be right there.

更改 python 可执行文件。

一个骇人听闻的解决方案是 运行 从 spyder 的脚本中解决这个问题 import pip; pip.main(['install','PyBluez'])