gpt4 book ai didi

windows-10 - 安装 glove-python-> link.exe 时出错,退出状态为 1181

转载 作者:行者123 更新时间:2023-12-05 02:18:35 26 4
gpt4 key购买 nike

我正在尝试为 python 3.5 x64 安装 glove-python 包,但出现如下所示的错误。 (注意:我在 Windows 10 上安装了 Visual C++ 2015 Build Tools)

注意:我搜索了一下,发现这个错误可能是由于某些文件的目录名中存在空格导致的https://support.microsoft.com/en-us/help/815645/you-receive-a-fatal-error-lnk1181-error-message-when-you-build-a-manag ,并且我必须将包含空格的文件夹名称放在引号之间。但是如何更改 LIPBATH 变量的路径以放置引号?如何访问这些包含导致问题的路径的变量?

C:\Users\ESCA>pip3 install glove-python
Collecting glove-python
Using cached glove_python-0.1.0.tar.gz
Requirement already satisfied: numpy in c:\users\esca\appdata\local\programs\python\python35\lib\site-packages (from glove-python)
Requirement already satisfied: scipy in c:\users\esca\appdata\local\programs\python\python35\lib\site-packages (from glove-python)
Building wheels for collected packages: glove-python
Running setup.py bdist_wheel for glove-python ... error
Complete output from command c:\users\esca\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ESCA\\AppData\\Local\\Temp\\pip-build-dpaf49i6\\glove-python\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\ESCA\AppData\Local\Temp\tmp5fnavjwipip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\glove
copying glove\corpus.py -> build\lib.win-amd64-3.5\glove
copying glove\glove.py -> build\lib.win-amd64-3.5\glove
copying glove\__init__.py -> build\lib.win-amd64-3.5\glove
running build_ext
building 'glove.glove_cython' extension
creating build\temp.win-amd64-3.5
creating build\temp.win-amd64-3.5\Release
creating build\temp.win-amd64-3.5\Release\glove
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\esca\appdata\local\programs\python\python35\include -Ic:\users\esca\appdata\local\programs\python\python35\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-I
C:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcglove/glove_cython.c /Fobuild\temp.win-amd64-3.5\Release\glove/glove_cython.obj -fopenmp -ffast-math -march=native
cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
cl : Command line warning D9002 : ignoring unknown option '-ffast-math'
cl : Command line warning D9002 : ignoring unknown option '-march=native'
glove_cython.c
glove/glove_cython.c(1692): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
glove/glove_cython.c(1701): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
glove/glove_cython.c(2348): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
glove/glove_cython.c(2357): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\esca\appdata\local\programs\python\python35\libs /LIBPATH:c:\users\esca\appdata\local\programs\python\python35\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit_glove_cython build\temp.win-amd64-3.5\Release\glove/glove_cython.obj /OUT:build\lib.win-amd64-3.5\glove\glove_cython.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\glove\glove_cython.cp35-win_amd64.lib -fopenmp
LINK : warning LNK4044: unrecognized option '/fopenmp'; ignored
glove_cython.obj : warning LNK4197: export 'PyInit_glove_cython' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.5\Release\glove\glove_cython.cp35-win_amd64.lib and object build\temp.win-amd64-3.5\Release\glove\glove_cython.cp35-win_amd64.exp
Generating code
Finished generating code
building 'glove.metrics.accuracy_cython' extension
creating build\temp.win-amd64-3.5\Release\glove\metrics
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\esca\appdata\local\programs\python\python35\include -Ic:\users\esca\appdata\local\programs\python\python35\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcglove/metrics/accuracy_cython.c /Fobuild\temp.win-amd64-3.5\Release\glove/metrics/accuracy_cython.obj -fopenmp -ffast-math -march=native
cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
cl : Command line warning D9002 : ignoring unknown option '-ffast-math'
cl : Command line warning D9002 : ignoring unknown option '-march=native'
accuracy_cython.c
glove/metrics/accuracy_cython.c(1569): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
glove/metrics/accuracy_cython.c(1578): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
glove/metrics/accuracy_cython.c(1587): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
creating C:\Users\ESCA\AppData\Local\Temp\pip-build-dpaf49i6\glove-python\build\lib.win-amd64-3.5\glove\metrics
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\esca\appdata\local\programs\python\python35\libs /LIBPATH:c:\users\esca\appdata\local\programs\python\python35\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit_accuracy_cython build\temp.win-amd64-3.5\Release\glove/metrics/accuracy_cython.obj /OUT:build\lib.win-amd64-3.5\glove\metrics\accuracy_cython.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\glove/metrics\accuracy_cython.cp35-win_amd64.lib -fopenmp
LINK : warning LNK4044: unrecognized option '/fopenmp'; ignored
accuracy_cython.obj : warning LNK4197: export 'PyInit_accuracy_cython' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.5\Release\glove/metrics\accuracy_cython.cp35-win_amd64.lib and object build\temp.win-amd64-3.5\Release\glove/metrics\accuracy_cython.cp35-win_amd64.exp
Generating code
Finished generating code
building 'glove.corpus_cython' extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\esca\appdata\local\programs\python\python35\include -Ic:\users\esca\appdata\local\programs\python\python35\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /EHsc /Tpglove/corpus_cython.cpp /Fobuild\temp.win-amd64-3.5\Release\glove/corpus_cython.obj -fopenmp -ffast-math -march=native
cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
cl : Command line warning D9002 : ignoring unknown option '-ffast-math'
cl : Command line warning D9002 : ignoring unknown option '-march=native'
corpus_cython.cpp
glove/corpus_cython.cpp(1796): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
glove/corpus_cython.cpp(2025): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
glove/corpus_cython.cpp(2235): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
glove/corpus_cython.cpp(2310): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
glove/corpus_cython.cpp(3251): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
glove/corpus_cython.cpp(3403): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
glove/corpus_cython.cpp(3431): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
glove/corpus_cython.cpp(3457): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'int', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\esca\appdata\local\programs\python\python35\libs /LIBPATH:c:\users\esca\appdata\local\programs\python\python35\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" stdc++.lib /EXPORT:PyInit_corpus_cython build\temp.win-amd64-3.5\Release\glove/corpus_cython.obj /OUT:build\lib.win-amd64-3.5\glove\corpus_cython.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\glove\corpus_cython.cp35-win_amd64.lib -fopenmp -ffast-math -march=native
LINK : warning LNK4044: unrecognized option '/fopenmp'; ignored
LINK : warning LNK4044: unrecognized option '/ffast-math'; ignored
LINK : warning LNK4044: unrecognized option '/march=native'; ignored
LINK : fatal error LNK1181: cannot open input file 'stdc++.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\link.exe' failed with exit status 1181

----------------------------------------
Failed building wheel for glove-python
Running setup.py clean for glove-python
Complete output from command c:\users\esca\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ESCA\\AppData\\Local\\Temp\\pip-build-dpaf49i6\\glove-python\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: option --all not recognized

----------------------------------------
Failed cleaning build dir for glove-python
Failed to build glove-python
Installing collected packages: glove-python
Running setup.py install for glove-python ... error
Complete output from command c:\users\esca\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ESCA\\AppData\\Local\\Temp\\pip-build-dpaf49i6\\glove-python\\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\ESCA\AppData\Local\Temp\pip-mkye10h8-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
running build_ext
building 'glove.corpus_cython' extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\esca\appdata\local\programs\python\python35\include -Ic:\users\esca\appdata\local\programs\python\python35\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /EHsc /Tpglove/corpus_cython.cpp /Fobuild\temp.win-amd64-3.5\Release\glove/corpus_cython.obj -fopenmp -ffast-math -march=native
cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
cl : Command line warning D9002 : ignoring unknown option '-ffast-math'
cl : Command line warning D9002 : ignoring unknown option '-march=native'
corpus_cython.cpp
glove/corpus_cython.cpp(1796): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
glove/corpus_cython.cpp(2025): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
glove/corpus_cython.cpp(2235): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
glove/corpus_cython.cpp(2310): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
glove/corpus_cython.cpp(3251): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
glove/corpus_cython.cpp(3403): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
glove/corpus_cython.cpp(3431): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
glove/corpus_cython.cpp(3457): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'int', possible loss of data
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\esca\appdata\local\programs\python\python35\libs /LIBPATH:c:\users\esca\appdata\local\programs\python\python35\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" stdc++.lib /EXPORT:PyInit_corpus_cython build\temp.win-amd64-3.5\Release\glove/corpus_cython.obj /OUT:build\lib.win-amd64-3.5\glove\corpus_cython.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\glove\corpus_cython.cp35-win_amd64.lib -fopenmp -ffast-math -march=native
LINK : warning LNK4044: unrecognized option '/fopenmp'; ignored
LINK : warning LNK4044: unrecognized option '/ffast-math'; ignored
LINK : warning LNK4044: unrecognized option '/march=native'; ignored
LINK : fatal error LNK1181: cannot open input file 'stdc++.lib'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\link.exe' failed with exit status 1181

----------------------------------------
Command "c:\users\esca\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ESCA\\AppData\\Local\\Temp\\pip-build-dpaf49i6\\glove-python\\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\ESCA\AppData\Local\Temp\pip-mkye10h8-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ESCA\AppData\Local\Temp\pip-build-dpaf49i6\glove-python\

最佳答案

我遇到了同样的错误。此解决方案可能会帮助您尝试。

pip 安装 glove==1.0.0

关于windows-10 - 安装 glove-python-> link.exe 时出错,退出状态为 1181,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44921611/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com