在 Windows8.1 安装 PyBluez 后,我得到 DLL %1 not valid win32 app
After installing PyBluez on Windows8.1 I get DLL %1 not valid win32 app
我已经在装有 Python 2.7 的 64 位机器上安装了 PyBluez-0.22.win32.exe
(他们没有 64 位版本)。然后我收到以下错误:
ImportError:DLL加载失败:%1 不是有效的 Win32 应用程序。
知道如何解决这个问题吗?
下面是依赖蓝牙的部分代码:
from bluetooth import *
import bluetooth._msbt as bt
bt.initwinsock ()
当您尝试使用 64 位 Python 解释器和 32 位扩展模块时会出现该错误消息。如果您使用 32 位 Python 解释器和 64 位扩展模块,则会出现相同的错误消息。
如果 PyBluez
仅作为 32 位库提供,那么您需要安装 32 位版本的 Python。
获得非官方的 64 位版本
我已经在装有 Python 2.7 的 64 位机器上安装了 PyBluez-0.22.win32.exe
(他们没有 64 位版本)。然后我收到以下错误:
ImportError:DLL加载失败:%1 不是有效的 Win32 应用程序。
知道如何解决这个问题吗?
下面是依赖蓝牙的部分代码:
from bluetooth import *
import bluetooth._msbt as bt
bt.initwinsock ()
当您尝试使用 64 位 Python 解释器和 32 位扩展模块时会出现该错误消息。如果您使用 32 位 Python 解释器和 64 位扩展模块,则会出现相同的错误消息。
如果 PyBluez
仅作为 32 位库提供,那么您需要安装 32 位版本的 Python。