链接:致命错误LNK1104:无法打开文件'uuid.lib' [英] LINK : fatal error LNK1104: cannot open file 'uuid.lib'
问题描述
我在尝试使用PIP3命令在Windows中安装apache-airflow时遇到以下错误(C:\ Users\ekranga \ AppData \ Local \Programs\Python \Python37> pip3 install apache-气流)
$
  C:\Program Files(x86)\ Microsoft Visual Studio \\\2017 \ BuildTools \VC \Tools \ MSVC
\14.16.27023 \bin\HostX86 \ x86\link.exe / nologo / INCREMENTAL:NO / LTCG / DLL / MANIFE
ST:EMBED,ID = 2 / MANIFESTUAC:NO / LIBPATH:c:\users\ekranga \ appdata\local\programs\p
ython\python37 \libs / LIBPATH:c:\ usersrs \ekranga \ appdata\local \programs\python \ pyth
on37 \ PCbuild\amd64" / LIBPATH:C:\Program Files(x86)\ Microsoft Visual Studio \ 201717¥b $ b \ BuildTools \\ \\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86" " / LIBPATH:C:\Program Files
(x86)\ Microsoft Visual Studio\2017 \ BuildTools\VC\Tools\MSVC\14.16.27023\\ \\ lib \ x86
" / EXPORT:PyInit_setproctitle build\temp.win-amd64-3.7\Release\src / setproctitle。
obj build\temp.win-amd64-3.7\Release\src / spt_debug .obj build\temp.win-amd64-3.7 \
发布\ src / spt_setup.obj build\temp.win-amd64-3.7\Release\src / spt_status.obj bu
ild\temp.win-amd64-3.7\Release\src / spt_strlcpy.obj /OUT:build\lib.win-amd64-3.7\
setproctitle.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\src\set
proctitle.cp37-win_amd64.lib
 链接:致命错误LNK1104:无法打开文件'uuid.lib'
 错误:命令'C:\\Program Files(x86)\\ Microsoft Visual Studio \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Tools \\MSVC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
$
I am facing the below error while trying to install apache-airflow in windows using PIP3 command (C:\Users\ekranga\AppData\Local\Programs\Python\Python37>pip3 install apache-airflow)
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC
\14.16.27023\bin\HostX86\x86\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFE
ST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\ekranga\appdata\local\programs\p
ython\python37\libs /LIBPATH:c:\users\ekranga\appdata\local\programs\python\pyth
on37\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017
\BuildTools\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files
(x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x86
" /EXPORT:PyInit_setproctitle build\temp.win-amd64-3.7\Release\src/setproctitle.
obj build\temp.win-amd64-3.7\Release\src/spt_debug.obj build\temp.win-amd64-3.7\
Release\src/spt_setup.obj build\temp.win-amd64-3.7\Release\src/spt_status.obj bu
ild\temp.win-amd64-3.7\Release\src/spt_strlcpy.obj /OUT:build\lib.win-amd64-3.7\
setproctitle.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\src\set
proctitle.cp37-win_amd64.lib
LINK : fatal error LNK1104: cannot open file 'uuid.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Buil
dTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\link.exe' failed with e
xit status 1104
推荐答案
图书馆uuid.lib是Windows SDK的一部分。如果您没有设置构建环境以包含这些路径(通常使用批处理文件),则还需要将Windows SDK库目录添加到路径中。应安装在Visual Studio 2017旁边的$ 10 $ b的Windows 10 SDK应安装在C:\Program Files(x86)\ Windows Wits \\\ 10中,因此库目录位于lib目录下这个。
The library uuid.lib is part of the Windows SDK. If you don't set up the build environment to include these paths (you usually use the batch files) then you need to add the Windows SDK library directory to the path too. The Windows 10 SDK, which should be installed along side Visual Studio 2017, should be installed in C:\Program Files (x86)\Windows Kits\10, so the library directory is in the directory lib under this.
虽然我注意到一些重要的东西,但构建意味着它正在构建x64版本(tmp.win-amd64-3.7),但它用于获取库的路径是x86库。如果这是真的那么这将无法建立。
Although I noticed something important, the build implies that it is building the x64 version (tmp.win-amd64-3.7) but the paths that it is using to get libraries from are the x86 libraries. If this is true then this will fail to build.
这篇关于链接:致命错误LNK1104:无法打开文件'uuid.lib'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!