windows安装pybluez报错

windows安装pybluez报错

刚刚去微软官网看了看,原来是新版windows sdk把他删了,但是这样包都无法安装了,只能去改源代码了

删除了 irprops.lib

在此版本中,我们从 Windows SDK 删除了 irprops.lib。链接到 irprops.lib 的应用可直接改为链接到 bthprops.lib。

我试了win7和win10,python 2.7/3.8/3.9,试着从源码装还有pip装,都报这个错误,有大佬遇到过这个问题吗
--- 报错

LINK : fatal error LNK1181: 无法打开输入文件“Irprops.lib”

error: command 'D:\\Develop\\Program Files\\CS\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181

--- 全部

msbt\_msbt.c(140): warning C4244: “=”: 从“SOCKET”转换到“int”,可能丢失数据

msbt\_msbt.c(169): warning C4996: 'WSAStringToAddressA': Use WSAStringToAddressW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings

msbt\_msbt.c(217): warning C4244: “=”: 从“SOCKET”转换到“int”,可能丢失数据

msbt\_msbt.c(240): warning C4996: 'WSAStringToAddressA': Use WSAStringToAddressW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings

msbt\_msbt.c(365): warning C4244: “=”: 从“SOCKET”转换到“int”,可能丢失数据

msbt\_msbt.c(358): warning C4996: 'WSADuplicateSocketA': Use WSADuplicateSocketW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings

msbt\_msbt.c(362): warning C4996: 'WSASocketA': Use WSASocketW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings

msbt\_msbt.c(378): warning C4244: “初始化”: 从“SOCKET”转换到“int”,可能丢失数据

msbt\_msbt.c(478): warning C4996: 'WSAStringToAddressA': Use WSAStringToAddressW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings

msbt\_msbt.c(556): warning C4244: “初始化”: 从“SOCKET”转换到“int”,可能丢失数据

msbt\_msbt.c(585): warning C4996: 'WSALookupServiceBeginA': Use WSALookupServiceBeginW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings

msbt\_msbt.c(607): warning C4996: 'WSALookupServiceNextA': Use WSALookupServiceNextW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings

msbt\_msbt.c(728): warning C4311: “类型强制转换”: 从“HANDLE”到“unsigned long”的指针截断

msbt\_msbt.c(720): warning C4996: 'WSASetServiceA': Use WSASetServiceW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings

msbt\_msbt.c(775): warning C4996: 'WSASetServiceA': Use WSASetServiceW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings

D:\Develop\Program Files\CS\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\x64" "/LIBPATH:D:\Develop\Program Files\Python\Python38\libs" "/LIBPATH:D:\Develop\Program Files\Python\Python38\PCbuild\amd64" "/LIBPATH:D:\Develop\Program Files\CS\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\ATLMFC\lib\x64" "/LIBPATH:D:\Develop\Program Files\CS\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:D:\Develop\Program Files\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:D:\Develop\Program Files\Windows Kits\10\lib\10.0.19041.0\um\x64" WS2_32.lib Irprops.lib /EXPORT:PyInit__msbt build\temp.win-amd64-3.8\Release\msbt\_msbt.obj /OUT:build\lib.win-amd64-3.8\bluetooth\_msbt.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.8\Release\msbt\_msbt.cp38-win_amd64.lib

LINK : fatal error LNK1181: 无法打开输入文件“Irprops.lib”

error: command 'D:\\Develop\\Program Files\\CS\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181

以上是 windows安装pybluez报错 的全部内容, 来源链接: utcz.com/a/158845.html

回到顶部