-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120 #143
Comments
Did you install the |
I have the same problem 'fatal error LNK1120: 5 unresolved externals' after compiling. |
Do these instructions work for you? It appears you don't have the underlying |
I am using msvc to compile in Windows10 64bit, but only win32 directory have msvc environment for compiling. Do I must use cygwin to compile? |
You shouldn't need Cygwin. Maybe someone with more Windows experience can weigh in and help you. |
I have same installation error -
Failed building wheel for MySQL-python
Command "C:\Users\Dell\Anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Dell\AppData\Local\Temp\pip-build-ewdcj7rt\MySQL-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\Dell\AppData\Local\Temp\pip-uktsj52a-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Dell\AppData\Local\Temp\pip-build-ewdcj7rt\MySQL-python\ |
Did you ever resolve this? I have the same exact error |
Do these instructions work for you? It appears you don't have the underlying |
I have same installation error HTS_audio.obj : error LNK2001: unresolved external symbol "__imp_waveOutPrepareHeader" |
for me it worked when I Installed 64 bit of latest python |
_________ IT WORKED FOR ME_______________
|
Microsoft Windows [Version 10.0.17763.805] C:\Users\fit4l>pip install mysql |
That looks like an error with MySQL? I’m confused.
… On Oct 12, 2019, at 1:02 PM, Cryptodad161 ***@***.***> wrote:
Did you ever resolve this? I have the same exact error
Microsoft Windows [Version 10.0.17763.805]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\fit4l>pip install mysql
Collecting mysql
Downloading https://files.pythonhosted.org/packages/bf/5f/b574ac9f70811df0540e403309f349a8b9fa1a25d3653824c32e52cc1f28/mysql-0.0.2.tar.gz
Collecting mysqlclient (from mysql)
Downloading https://files.pythonhosted.org/packages/4d/38/c5f8bac9c50f3042c8f05615f84206f77f03db79781db841898fde1bb284/mysqlclient-1.4.4.tar.gz (86kB)
|████████████████████████████████| 92kB 3.0MB/s
Installing collected packages: mysqlclient, mysql
Running setup.py install for mysqlclient ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\fit4l\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\fit4l\AppData\Local\Temp\pip-install-wzglomud\mysqlclient\setup.py'"'"'; file='"'"'C:\Users\fit4l\AppData\Local\Temp\pip-install-wzglomud\mysqlclient\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\fit4l\AppData\Local\Temp\pip-record-yvjoh1kp\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\fit4l\AppData\Local\Temp\pip-install-wzglomud\mysqlclient
Complete output (30 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\MySQLdb
copying MySQLdb_init_.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb_exceptions.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\compat.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.7\MySQLdb
creating build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants_init_.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.7\MySQLdb\constants
running build_ext
building 'MySQLdb.mysql' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\MySQLdb
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Dversion_info=(1,4,4,'final',0) -D__version_=1.4.4 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include\mariadb" -Ic:\users\fit4l\appdata\local\programs\python\python37-32\include -Ic:\users\fit4l\appdata\local\programs\python\python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /TcMySQLdb/_mysql.c /Fobuild\temp.win32-3.7\Release\MySQLdb/_mysql.obj /Zl /D_CRT_SECURE_NO_WARNINGS
_mysql.c
MySQLdb/_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX86\x86\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\fit4l\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\fit4l\AppData\Local\Temp\pip-install-wzglomud\mysqlclient\setup.py'"'"'; file='"'"'C:\Users\fit4l\AppData\Local\Temp\pip-install-wzglomud\mysqlclient\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\fit4l\AppData\Local\Temp\pip-record-yvjoh1kp\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Same error installing mysql as well as ta-lib.Kind Regards Reuben Hawley +31618800204
-------- Original message --------From: John Benediktsson <notifications@github.com> Date: 2019/10/12 23:30 (GMT+01:00) To: mrjbq7/ta-lib <ta-lib@noreply.github.com> Cc: Cryptodad161 <equalsfit@gmail.com>, Comment <comment@noreply.github.com> Subject: Re: [mrjbq7/ta-lib] error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120 (#143) That looks like an error with MySQL? I’m confused.
On Oct 12, 2019, at 1:02 PM, Cryptodad161 ***@***.***> wrote:
Did you ever resolve this? I have the same exact error
Microsoft Windows [Version 10.0.17763.805]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\fit4l>pip install mysql
Collecting mysql
Downloading https://files.pythonhosted.org/packages/bf/5f/b574ac9f70811df0540e403309f349a8b9fa1a25d3653824c32e52cc1f28/mysql-0.0.2.tar.gz
Collecting mysqlclient (from mysql)
Downloading https://files.pythonhosted.org/packages/4d/38/c5f8bac9c50f3042c8f05615f84206f77f03db79781db841898fde1bb284/mysqlclient-1.4.4.tar.gz (86kB)
|████████████████████████████████| 92kB 3.0MB/s
Installing collected packages: mysqlclient, mysql
Running setup.py install for mysqlclient ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\fit4l\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\fit4l\AppData\Local\Temp\pip-install-wzglomud\mysqlclient\setup.py'"'"'; file='"'"'C:\Users\fit4l\AppData\Local\Temp\pip-install-wzglomud\mysqlclient\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\fit4l\AppData\Local\Temp\pip-record-yvjoh1kp\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\fit4l\AppData\Local\Temp\pip-install-wzglomud\mysqlclient
Complete output (30 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\MySQLdb
copying MySQLdb_init_.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb_exceptions.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\compat.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.7\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.7\MySQLdb
creating build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants_init_.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.7\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.7\MySQLdb\constants
running build_ext
building 'MySQLdb.mysql' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\MySQLdb
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Dversion_info=(1,4,4,'final',0) -D__version_=1.4.4 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include\mariadb" -Ic:\users\fit4l\appdata\local\programs\python\python37-32\include -Ic:\users\fit4l\appdata\local\programs\python\python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /TcMySQLdb/_mysql.c /Fobuild\temp.win32-3.7\Release\MySQLdb/_mysql.obj /Zl /D_CRT_SECURE_NO_WARNINGS
_mysql.c
MySQLdb/_mysql.c(29): fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX86\x86\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\fit4l\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\fit4l\AppData\Local\Temp\pip-install-wzglomud\mysqlclient\setup.py'"'"'; file='"'"'C:\Users\fit4l\AppData\Local\Temp\pip-install-wzglomud\mysqlclient\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\fit4l\AppData\Local\Temp\pip-record-yvjoh1kp\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#143",
"url": "#143",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
How did you all resolve this? |
This guy cracked it: Here are my instructions to build the 64-bit ta-lib. Install TA-Lib C Library on Windows 10 Download and Unzip ta-lib-0.4.0-msvc.zip |
For what it’s worth, that’s in the README and works. You can also get some of the unofficial windows binary download should also work.
… On Oct 15, 2019, at 7:21 PM, millionarecoin ***@***.***> wrote:
This guy cracked it: Here are my instructions to build the 64-bit ta-lib.
Install TA-Lib C Library on Windows 10
Download and Unzip ta-lib-0.4.0-msvc.zip
Move the Unzipped Folder ta-lib to C:
Download and Install Visual Studio Community 2015
Remember to Select [Visual C++] Feature
Build TA-Lib Library
From Windows Start Menu, Start [VS2015 x64 Native Tools Command Prompt]
Move to C:\ta-lib\c\make\cdr\win32\msvc
Build the Library nmake
Then pip3 install t
#127 (comment)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Closing all installation issues, if someone has a specific problem please open a new one. |
I tried to install ta-lib and got this:
C:\Users\paumi\AppData\Local\Programs\Python\Python36\Scripts>pip install Ta-lib
Collecting Ta-lib
Using cached TA-Lib-0.4.10.tar.gz
Installing collected packages: Ta-lib
Running setup.py install for Ta-lib ... error
Complete output from command c:\users\paumi\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;file='C:\Users\paumi\AppData\Local\Temp\pip-build-aiqix_lq\Ta-lib\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\paumi\AppData\Local\Temp\pip-wgebphdg-record\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\talib
copying talib\deprecated.py -> build\lib.win-amd64-3.6\talib
copying talib\test_abstract.py -> build\lib.win-amd64-3.6\talib
copying talib\test_data.py -> build\lib.win-amd64-3.6\talib
copying talib\test_func.py -> build\lib.win-amd64-3.6\talib
copying talib\test_stream.py -> build\lib.win-amd64-3.6\talib
copying talib_init_.py -> build\lib.win-amd64-3.6\talib
running build_ext
building 'talib.common' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\talib
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\paumi\appdata\local\programs\python\python36\lib\site-packages\numpy\core\include -Ic:\ta-lib\c\include -Ic:\users\paumi\appdata\local\programs\python\python36\include -Ic:\users\paumi\appdata\local\programs\python\python36\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" /Tctalib/common.c /Fobuild\temp.win-amd64-3.6\Release\talib/common.obj
common.c
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:\ta-lib\c\lib /LIBPATH:c:\users\paumi\appdata\local\programs\python\python36\libs /LIBPATH:c:\users\paumi\appdata\local\programs\python\python36\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" ta_libc_cdr.lib /EXPORT:PyInit_common build\temp.win-amd64-3.6\Release\talib/common.obj /OUT:build\lib.win-amd64-3.6\talib\common.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\talib\common.cp36-win_amd64.lib
common.obj : warning LNK4197: export 'PyInit_common' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.6\Release\talib\common.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\talib\common.cp36-win_amd64.exp
common.obj : error LNK2001: unresolved external symbol TA_SetUnstablePeriod
common.obj : error LNK2001: unresolved external symbol TA_Shutdown
common.obj : error LNK2001: unresolved external symbol TA_Initialize
common.obj : error LNK2001: unresolved external symbol TA_GetUnstablePeriod
common.obj : error LNK2001: unresolved external symbol TA_GetVersionString
build\lib.win-amd64-3.6\talib\common.cp36-win_amd64.pyd : fatal error LNK1120: 5 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\paumi\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;file='C:\Users\paumi\AppData\Local\Temp\pip-build-aiqix_lq\Ta-lib\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\paumi\AppData\Local\Temp\pip-wgebphdg-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\paumi\AppData\Local\Temp\pip-build-aiqix_lq\Ta-lib\
The text was updated successfully, but these errors were encountered: