0
点赞
收藏
分享

微信扫一扫

windows平台下安装pyknotid的问题

程序员伟杰 2022-01-31 阅读 226

windows平台下在cmd中安装pyknotid的问题:

1. 尝试pip3 install pyknotid,出现问题:

LINK : fatal error LNK1181: cannot open input file 'm.lib'

    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181

    ----------------------------------------

ERROR: Command errored out with exit status 1: 'c:\users\junchuan\appdata\local\programs\python\python35\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\J~1\\AppData\\Local\\Temp\\pip-install-z9kizkkm\\pyknotid\\setup.py'"'"'; __file__='"'"'C:\\Users\\J~1\\AppData\\Local\\Temp\\pip-install-z9kizkkm\\pyknotid\\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\J~1\AppData\Local\Temp\pip-record-oz211joa\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\junchuan\appdata\local\programs\python\python35\Include\pyknotid' Check the logs for full command output.

2. 尝试下载github上的程序包并解压,在pyknotid文件夹下运行:

python setup.py install

仍出现错误:

LINK : fatal error LNK1181: cannot open input file 'm.lib'

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\link.exe' failed with exit status 1181

3. 搜索如下方法:

LNK1181:cannot open input file "m.lib"-Python-CSDN问答

找出setup.py文件中的所有libraries=["m"],去掉里边的"m",并重新尝试:

python setup.py install

不再报错。

举报

相关推荐

0 条评论