Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120 #28

Open
yxf123456qaz opened this issue Dec 18, 2020 · 0 comments

Comments

@yxf123456qaz
Copy link

Hi Xiaohui

i failed to install biterm on my system ( win10, python 3.6 anaconda, installing with pip install biterm)
Microsoft visual c++ 14 is installed ( and re-installed), but it still fails. Can't figure out why, the closed issue looks kind of similar, but i cant use it. Sorry if I'm getting something wrong and this is my fault, not an issue, I'm not a pro with the python dependencies.

EDIT : Installing with pip install git+git://github.com/markoarnauto/biterm.git works fine.

Here's the error message I'm gettin:

(classification_omt) C:\Users\fmeyer>pip install biterm
Collecting biterm
Using cached https://files.pythonhosted.org/packages/36/ca/5a43511e6ea8ca02cc9e8be1b8898ad79b140c055d4400342dc210ba23bb/biterm-0.1.5.tar.gz
Requirement already satisfied: numpy in c:\users\fmeyer\anaconda3\envs\classification_omt\lib\site-packages (from biterm) (1.16.4)
Requirement already satisfied: tqdm in c:\users\fmeyer\anaconda3\envs\classification_omt\lib\site-packages (from biterm) (4.31.1)
Requirement already satisfied: cython in c:\users\fmeyer\anaconda3\envs\classification_omt\lib\site-packages (from biterm) (0.29.6)
Requirement already satisfied: nltk in c:\users\fmeyer\anaconda3\envs\classification_omt\lib\site-packages (from biterm) (3.3)
Requirement already satisfied: six in c:\users\fmeyer\anaconda3\envs\classification_omt\lib\site-packages (from nltk->biterm) (1.11.0)
Building wheels for collected packages: biterm
Running setup.py bdist_wheel for biterm ... error
Complete output from command C:\Users\fmeyer\Anaconda3\envs\classification_omt\python.exe -u -c "import setuptools, tokenize;file='C:\Users\fmeyer\AppData\Local\Temp\pip-install-n_9xm6j5\biterm\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\fmeyer\AppData\Local\Temp\pip-wheel-7z338gxy --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\biterm
copying biterm\btm.py -> build\lib.win-amd64-3.6\biterm
copying biterm\utility.py -> build\lib.win-amd64-3.6\biterm
copying biterm_init_.py -> build\lib.win-amd64-3.6\biterm
copying biterm_main_.py -> build\lib.win-amd64-3.6\biterm
running build_ext
building 'biterm.cbtm' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\biterm
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\fmeyer\Anaconda3\envs\classification_omt\lib\site-packages\numpy\core\include -IC:\Users\fmeyer\Anaconda3\envs\classification_omt\include -IC:\Users\fmeyer\Anaconda3\envs\classification_omt\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\10\include\10.0.10240.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\winrt" /Tcbiterm/cbtm.c /Fobuild\temp.win-amd64-3.6\Release\biterm/cbtm.obj
cbtm.c
c:\users\fmeyer\anaconda3\envs\classification_omt\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
biterm/cbtm.c(2139): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
biterm/cbtm.c(2237): warning C4013: 'drand48' undefined; assuming extern returning int
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\fmeyer\Anaconda3\envs\classification_omt\libs /LIBPATH:C:\Users\fmeyer\Anaconda3\envs\classification_omt\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\10\lib\10.0.10240.0\um\x64" /EXPORT:PyInit_cbtm build\temp.win-amd64-3.6\Release\biterm/cbtm.obj /OUT:build\lib.win-amd64-3.6\biterm\cbtm.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\biterm\cbtm.cp36-win_amd64.lib
cbtm.obj : warning LNK4197: export 'PyInit_cbtm' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.6\Release\biterm\cbtm.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\biterm\cbtm.cp36-win_amd64.exp
cbtm.obj : error LNK2001: unresolved external symbol drand48
build\lib.win-amd64-3.6\biterm\cbtm.cp36-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe' failed with exit status 1120

Failed building wheel for biterm
Running setup.py clean for biterm
Failed to build biterm
Installing collected packages: biterm
Running setup.py install for biterm ... error
Complete output from command C:\Users\fmeyer\Anaconda3\envs\classification_omt\python.exe -u -c "import setuptools, tokenize;file='C:\Users\fmeyer\AppData\Local\Temp\pip-install-n_9xm6j5\biterm\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\fmeyer\AppData\Local\Temp\pip-record-erqtkw2c\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\biterm
copying biterm\btm.py -> build\lib.win-amd64-3.6\biterm
copying biterm\utility.py -> build\lib.win-amd64-3.6\biterm
copying biterm_init_.py -> build\lib.win-amd64-3.6\biterm
copying biterm_main_.py -> build\lib.win-amd64-3.6\biterm
running build_ext
building 'biterm.cbtm' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\biterm
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\fmeyer\Anaconda3\envs\classification_omt\lib\site-packages\numpy\core\include -IC:\Users\fmeyer\Anaconda3\envs\classification_omt\include -IC:\Users\fmeyer\Anaconda3\envs\classification_omt\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\10\include\10.0.10240.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\winrt" /Tcbiterm/cbtm.c /Fobuild\temp.win-amd64-3.6\Release\biterm/cbtm.obj
cbtm.c
c:\users\fmeyer\anaconda3\envs\classification_omt\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
biterm/cbtm.c(2139): warning C4244: '=': conversion from 'npy_intp' to 'int', possible loss of data
biterm/cbtm.c(2237): warning C4013: 'drand48' undefined; assuming extern returning int
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\fmeyer\Anaconda3\envs\classification_omt\libs /LIBPATH:C:\Users\fmeyer\Anaconda3\envs\classification_omt\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\10\lib\10.0.10240.0\um\x64" /EXPORT:PyInit_cbtm build\temp.win-amd64-3.6\Release\biterm/cbtm.obj /OUT:build\lib.win-amd64-3.6\biterm\cbtm.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\biterm\cbtm.cp36-win_amd64.lib
cbtm.obj : warning LNK4197: export 'PyInit_cbtm' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.6\Release\biterm\cbtm.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\biterm\cbtm.cp36-win_amd64.exp
cbtm.obj : error LNK2001: unresolved external symbol drand48
build\lib.win-amd64-3.6\biterm\cbtm.cp36-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe' failed with exit status 1120


Command "C:\Users\fmeyer\Anaconda3\envs\classification_omt\python.exe -u -c "import setuptools, tokenize;file='C:\Users\fmeyer\AppData\Local\Temp\pip-install-n_9xm6j5\biterm\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\fmeyer\AppData\Local\Temp\pip-record-erqtkw2c\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\fmeyer\AppData\Local\Temp\pip-install-n_9xm6j5\biterm\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant