为此,我必须将python与aurdino进行通信,我正在尝试安装软件包pybluex
,但始终会出现此错误
LINK : fatal error LNK1181: cannot open input file 'Irprops.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x86\\link.exe' failed with exit status 1181
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SHEKHA~1\\AppData\\Local\\Temp\\pycharm-packaging\\PyBluez\\setup.py'"'"'; __file__='"'"'C:\\Users\\SHEKHA~1\\AppData\\Local\\Temp\\pycharm-packaging\\PyBluez\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\shekhani laptop\AppData\Local\Temp\pip-record-ku9uo755\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python38-32\Include\PyBluez' Check the logs for full command output.
答案 0 :(得分:1)
此问题现已在 github repo 中修复,但看起来他们尚未更新 pip 包。从 repo 直接安装无需降级
答案 1 :(得分:0)
就我而言,我注意到Windows SDK版本没有'irprops.lib',因为它已根据https://blogs.windows.com/windowsdeveloper/2019/11/19/windows-10-sdk-preview-build-19023-available-now/
进行了替换。删除IRPROPS.LIB
在此版本中,irprops.lib已从Windows SDK中删除。链接到irprops.lib的应用程序可以切换到bthprops.lib作为替代产品。
为解决此问题,我安装了Windows 10 SDK的早期版本。如果我有更多时间,我可能会尝试将依赖项更新为bthprops.lib;)