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

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120 #143

Closed
AdriaanDiedericks opened this issue May 10, 2017 · 18 comments

Comments

@AdriaanDiedericks
Copy link

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\

@mrjbq7
Copy link
Member

mrjbq7 commented May 10, 2017

Did you install the ta-lib underlying C library? Looks like you are trying to use 64-bit on Windows. They don't have a 64-bit binary distribution so you will have to build it yourself before doing pip install ta-lib.

@iipod2010
Copy link

I have the same problem 'fatal error LNK1120: 5 unresolved externals' after compiling.

@mrjbq7
Copy link
Member

mrjbq7 commented Jul 17, 2017

Do these instructions work for you? It appears you don't have the underlying ta-lib C library installed properly for 64-bit.

#127 (comment)

@iipod2010
Copy link

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?

@mrjbq7
Copy link
Member

mrjbq7 commented Jul 20, 2017

You shouldn't need Cygwin. Maybe someone with more Windows experience can weigh in and help you.

@Swapnil2095
Copy link

Swapnil2095 commented Jul 30, 2017

I have same installation error -

pip install mysql
Collecting mysql
Collecting MySQL-python (from mysql)
Using cached MySQL-python-1.2.5.zip
Building wheels for collected packages: MySQL-python
Running setup.py bdist_wheel for MySQL-python ... error
Complete output from 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'))" bdist_wheel -d C:\Users\Dell\AppData\Local\Temp\tmptc6xy0mspip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
copying mysql_exceptions.py -> build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\MySQLdb
copying MySQLdb_init
.py -> build\lib.win-amd64-3.6\MySQLdb
copying MySQLdb\converters.py -> build\lib.win-amd64-3.6\MySQLdb
copying MySQLdb\connections.py -> build\lib.win-amd64-3.6\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win-amd64-3.6\MySQLdb
copying MySQLdb\release.py -> build\lib.win-amd64-3.6\MySQLdb
copying MySQLdb\times.py -> build\lib.win-amd64-3.6\MySQLdb
creating build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants_init_.py -> build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.6\MySQLdb\constants
running build_ext
building 'mysql' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dversion_info=(1,2,5,'final',1) -D__version
_=1.2.5 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" -IC:\Users\Dell\Anaconda3\include -IC:\Users\Dell\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt" /Tc_mysql.c /Fobuild\temp.win-amd64-3.6\Release_mysql.obj /Zl
_mysql.c
C:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include\config-win.h(192): warning C4005: 'isnan': macro redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt\corecrt_math.h(275): note: see previous definition of 'isnan'
C:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include\config-win.h(203): warning C4005: 'SIZEOF_OFF_T': macro redefinition
c:\users\dell\anaconda3\include\pyconfig.h(310): note: see previous definition of 'SIZEOF_OFF_T'
C:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include\config-win.h(301): warning C4005: 'HAVE_STDDEF_H': macro redefinition
c:\users\dell\anaconda3\include\pyconfig.h(602): note: see previous definition of 'HAVE_STDDEF_H'
_mysql.c(287): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
_mysql.c(297): warning C4090: '=': different 'const' qualifiers
_mysql.c(317): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
_mysql.c(327): warning C4090: '=': different 'const' qualifiers
_mysql.c(470): warning C4244: 'initializing': conversion from 'Py_ssize_t' to 'int', possible loss of data
_mysql.c(623): warning C4090: '=': different 'const' qualifiers
_mysql.c(624): warning C4090: '=': different 'const' qualifiers
_mysql.c(625): warning C4090: '=': different 'const' qualifiers
_mysql.c(626): warning C4090: '=': different 'const' qualifiers
_mysql.c(627): warning C4090: '=': different 'const' qualifiers
_mysql.c(1118): warning C4090: '=': different 'const' qualifiers
_mysql.c(1161): warning C4090: '=': different 'const' qualifiers
_mysql.c(1162): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
_mysql.c(1165): warning C4090: '=': different 'const' qualifiers
_mysql.c(1274): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
_mysql.c(1466): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
_mysql.c(1468): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
_mysql.c(1504): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
_mysql.c(1506): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
_mysql.c(1532): warning C4018: '<': signed/unsigned mismatch
_mysql.c(2238): warning C4311: 'type cast': pointer truncation from '_mysql_ConnectionObject *' to 'long'
_mysql.c(2241): warning C4311: 'type cast': pointer truncation from '_mysql_ConnectionObject *' to 'long'
_mysql.c(2302): warning C4244: 'function': conversion from '__int64' to 'long', possible loss of data
_mysql.c(2321): warning C4311: 'type cast': pointer truncation from '_mysql_ResultObject *' to 'long'
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:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\lib\opt" /LIBPATH:C:\Users\Dell\Anaconda3\libs /LIBPATH:C:\Users\Dell\Anaconda3\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.15063.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.15063.0\um\x64" kernel32.lib advapi32.lib wsock32.lib mysqlclient.lib /EXPORT:PyInit__mysql build\temp.win-amd64-3.6\Release_mysql.obj /OUT:build\lib.win-amd64-3.6_mysql.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release_mysql.cp36-win_amd64.lib
_mysql.obj : warning LNK4197: export 'PyInit__mysql' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.6\Release_mysql.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release_mysql.cp36-win_amd64.exp
_mysql.obj : error LNK2001: unresolved external symbol __security_check_cookie
_mysql.obj : error LNK2001: unresolved external symbol mysql_field_count
_mysql.obj : error LNK2001: unresolved external symbol mysql_warning_count
_mysql.obj : error LNK2001: unresolved external symbol mysql_num_rows
_mysql.obj : error LNK2001: unresolved external symbol mysql_shutdown
_mysql.obj : error LNK2001: unresolved external symbol mysql_real_query
_mysql.obj : error LNK2001: unresolved external symbol mysql_ping
_mysql.obj : error LNK2001: unresolved external symbol mysql_stat
_mysql.obj : error LNK2001: unresolved external symbol mysql_insert_id
_mysql.obj : error LNK2001: unresolved external symbol mysql_next_result
_mysql.obj : error LNK2001: unresolved external symbol mysql_ssl_set
_mysql.obj : error LNK2001: unresolved external symbol mysql_get_proto_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_store_result
_mysql.obj : error LNK2001: unresolved external symbol mysql_change_user
_mysql.obj : error LNK2001: unresolved external symbol mysql_get_character_set_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_commit
_mysql.obj : error LNK2001: unresolved external symbol mysql_get_server_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_data_seek
_mysql.obj : error LNK2001: unresolved external symbol mysql_errno
_mysql.obj : error LNK2001: unresolved external symbol mysql_real_connect
_mysql.obj : error LNK2001: unresolved external symbol mysql_rollback
_mysql.obj : error LNK2001: unresolved external symbol mysql_options
_mysql.obj : error LNK2001: unresolved external symbol mysql_get_host_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_fetch_lengths
_mysql.obj : error LNK2001: unresolved external symbol __imp_strncpy
_mysql.obj : error LNK2001: unresolved external symbol mysql_affected_rows
_mysql.obj : error LNK2001: unresolved external symbol mysql_real_escape_string
_mysql.obj : error LNK2001: unresolved external symbol mysql_debug
_mysql.obj : error LNK2001: unresolved external symbol mysql_set_server_option
_mysql.obj : error LNK2001: unresolved external symbol mysql_set_character_set
_mysql.obj : error LNK2001: unresolved external symbol mysql_dump_debug_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_row_tell
_mysql.obj : error LNK2001: unresolved external symbol mysql_close
_mysql.obj : error LNK2001: unresolved external symbol mysql_server_end
_mysql.obj : error LNK2001: unresolved external symbol mysql_get_client_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_server_init
_mysql.obj : error LNK2001: unresolved external symbol __imp___stdio_common_vsprintf
_mysql.obj : error LNK2001: unresolved external symbol mysql_free_result
_mysql.obj : error LNK2001: unresolved external symbol mysql_fetch_row
_mysql.obj : error LNK2001: unresolved external symbol mysql_thread_safe
_mysql.obj : error LNK2001: unresolved external symbol mysql_fetch_fields
_mysql.obj : error LNK2001: unresolved external symbol mysql_character_set_name
_mysql.obj : error LNK2001: unresolved external symbol mysql_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_escape_string
_mysql.obj : error LNK2001: unresolved external symbol mysql_num_fields
_mysql.obj : error LNK2001: unresolved external symbol mysql_kill
_mysql.obj : error LNK2001: unresolved external symbol __imp_strncat
_mysql.obj : error LNK2001: unresolved external symbol mysql_use_result
_mysql.obj : error LNK2001: unresolved external symbol mysql_select_db
_mysql.obj : error LNK2001: unresolved external symbol mysql_sqlstate
_mysql.obj : error LNK2001: unresolved external symbol mysql_init
_mysql.obj : error LNK2001: unresolved external symbol mysql_row_seek
_mysql.obj : error LNK2001: unresolved external symbol mysql_autocommit
_mysql.obj : error LNK2001: unresolved external symbol mysql_error
_mysql.obj : error LNK2001: unresolved external symbol mysql_thread_id
LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
build\lib.win-amd64-3.6_mysql.cp36-win_amd64.pyd : fatal error LNK1120: 56 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 MySQL-python
Running setup.py clean for MySQL-python
Failed to build MySQL-python
Installing collected packages: MySQL-python, mysql
Running setup.py install for MySQL-python ... error
Complete output from 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:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
copying mysql_exceptions.py -> build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\MySQLdb
copying MySQLdb_init
.py -> build\lib.win-amd64-3.6\MySQLdb
copying MySQLdb\converters.py -> build\lib.win-amd64-3.6\MySQLdb
copying MySQLdb\connections.py -> build\lib.win-amd64-3.6\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win-amd64-3.6\MySQLdb
copying MySQLdb\release.py -> build\lib.win-amd64-3.6\MySQLdb
copying MySQLdb\times.py -> build\lib.win-amd64-3.6\MySQLdb
creating build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants_init_.py -> build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-3.6\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.6\MySQLdb\constants
running build_ext
building 'mysql' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dversion_info=(1,2,5,'final',1) -D__version
_=1.2.5 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" -IC:\Users\Dell\Anaconda3\include -IC:\Users\Dell\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt" /Tc_mysql.c /Fobuild\temp.win-amd64-3.6\Release_mysql.obj /Zl
_mysql.c
C:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include\config-win.h(192): warning C4005: 'isnan': macro redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt\corecrt_math.h(275): note: see previous definition of 'isnan'
C:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include\config-win.h(203): warning C4005: 'SIZEOF_OFF_T': macro redefinition
c:\users\dell\anaconda3\include\pyconfig.h(310): note: see previous definition of 'SIZEOF_OFF_T'
C:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include\config-win.h(301): warning C4005: 'HAVE_STDDEF_H': macro redefinition
c:\users\dell\anaconda3\include\pyconfig.h(602): note: see previous definition of 'HAVE_STDDEF_H'
_mysql.c(287): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
_mysql.c(297): warning C4090: '=': different 'const' qualifiers
_mysql.c(317): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
_mysql.c(327): warning C4090: '=': different 'const' qualifiers
_mysql.c(470): warning C4244: 'initializing': conversion from 'Py_ssize_t' to 'int', possible loss of data
_mysql.c(623): warning C4090: '=': different 'const' qualifiers
_mysql.c(624): warning C4090: '=': different 'const' qualifiers
_mysql.c(625): warning C4090: '=': different 'const' qualifiers
_mysql.c(626): warning C4090: '=': different 'const' qualifiers
_mysql.c(627): warning C4090: '=': different 'const' qualifiers
_mysql.c(1118): warning C4090: '=': different 'const' qualifiers
_mysql.c(1161): warning C4090: '=': different 'const' qualifiers
_mysql.c(1162): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
_mysql.c(1165): warning C4090: '=': different 'const' qualifiers
_mysql.c(1274): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
_mysql.c(1466): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
_mysql.c(1468): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
_mysql.c(1504): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
_mysql.c(1506): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
_mysql.c(1532): warning C4018: '<': signed/unsigned mismatch
_mysql.c(2238): warning C4311: 'type cast': pointer truncation from '_mysql_ConnectionObject *' to 'long'
_mysql.c(2241): warning C4311: 'type cast': pointer truncation from '_mysql_ConnectionObject *' to 'long'
_mysql.c(2302): warning C4244: 'function': conversion from '__int64' to 'long', possible loss of data
_mysql.c(2321): warning C4311: 'type cast': pointer truncation from '_mysql_ResultObject *' to 'long'
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:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\lib\opt" /LIBPATH:C:\Users\Dell\Anaconda3\libs /LIBPATH:C:\Users\Dell\Anaconda3\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.15063.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.15063.0\um\x64" kernel32.lib advapi32.lib wsock32.lib mysqlclient.lib /EXPORT:PyInit__mysql build\temp.win-amd64-3.6\Release_mysql.obj /OUT:build\lib.win-amd64-3.6_mysql.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release_mysql.cp36-win_amd64.lib
_mysql.obj : warning LNK4197: export 'PyInit__mysql' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.6\Release_mysql.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release_mysql.cp36-win_amd64.exp
_mysql.obj : error LNK2001: unresolved external symbol __security_check_cookie
_mysql.obj : error LNK2001: unresolved external symbol mysql_field_count
_mysql.obj : error LNK2001: unresolved external symbol mysql_warning_count
_mysql.obj : error LNK2001: unresolved external symbol mysql_num_rows
_mysql.obj : error LNK2001: unresolved external symbol mysql_shutdown
_mysql.obj : error LNK2001: unresolved external symbol mysql_real_query
_mysql.obj : error LNK2001: unresolved external symbol mysql_ping
_mysql.obj : error LNK2001: unresolved external symbol mysql_stat
_mysql.obj : error LNK2001: unresolved external symbol mysql_insert_id
_mysql.obj : error LNK2001: unresolved external symbol mysql_next_result
_mysql.obj : error LNK2001: unresolved external symbol mysql_ssl_set
_mysql.obj : error LNK2001: unresolved external symbol mysql_get_proto_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_store_result
_mysql.obj : error LNK2001: unresolved external symbol mysql_change_user
_mysql.obj : error LNK2001: unresolved external symbol mysql_get_character_set_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_commit
_mysql.obj : error LNK2001: unresolved external symbol mysql_get_server_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_data_seek
_mysql.obj : error LNK2001: unresolved external symbol mysql_errno
_mysql.obj : error LNK2001: unresolved external symbol mysql_real_connect
_mysql.obj : error LNK2001: unresolved external symbol mysql_rollback
_mysql.obj : error LNK2001: unresolved external symbol mysql_options
_mysql.obj : error LNK2001: unresolved external symbol mysql_get_host_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_fetch_lengths
_mysql.obj : error LNK2001: unresolved external symbol __imp_strncpy
_mysql.obj : error LNK2001: unresolved external symbol mysql_affected_rows
_mysql.obj : error LNK2001: unresolved external symbol mysql_real_escape_string
_mysql.obj : error LNK2001: unresolved external symbol mysql_debug
_mysql.obj : error LNK2001: unresolved external symbol mysql_set_server_option
_mysql.obj : error LNK2001: unresolved external symbol mysql_set_character_set
_mysql.obj : error LNK2001: unresolved external symbol mysql_dump_debug_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_row_tell
_mysql.obj : error LNK2001: unresolved external symbol mysql_close
_mysql.obj : error LNK2001: unresolved external symbol mysql_server_end
_mysql.obj : error LNK2001: unresolved external symbol mysql_get_client_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_server_init
_mysql.obj : error LNK2001: unresolved external symbol __imp___stdio_common_vsprintf
_mysql.obj : error LNK2001: unresolved external symbol mysql_free_result
_mysql.obj : error LNK2001: unresolved external symbol mysql_fetch_row
_mysql.obj : error LNK2001: unresolved external symbol mysql_thread_safe
_mysql.obj : error LNK2001: unresolved external symbol mysql_fetch_fields
_mysql.obj : error LNK2001: unresolved external symbol mysql_character_set_name
_mysql.obj : error LNK2001: unresolved external symbol mysql_info
_mysql.obj : error LNK2001: unresolved external symbol mysql_escape_string
_mysql.obj : error LNK2001: unresolved external symbol mysql_num_fields
_mysql.obj : error LNK2001: unresolved external symbol mysql_kill
_mysql.obj : error LNK2001: unresolved external symbol __imp_strncat
_mysql.obj : error LNK2001: unresolved external symbol mysql_use_result
_mysql.obj : error LNK2001: unresolved external symbol mysql_select_db
_mysql.obj : error LNK2001: unresolved external symbol mysql_sqlstate
_mysql.obj : error LNK2001: unresolved external symbol mysql_init
_mysql.obj : error LNK2001: unresolved external symbol mysql_row_seek
_mysql.obj : error LNK2001: unresolved external symbol mysql_autocommit
_mysql.obj : error LNK2001: unresolved external symbol mysql_error
_mysql.obj : error LNK2001: unresolved external symbol mysql_thread_id
LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
build\lib.win-amd64-3.6_mysql.cp36-win_amd64.pyd : fatal error LNK1120: 56 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\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\

@Inzine
Copy link

Inzine commented Jul 6, 2018

Did you ever resolve this? I have the same exact error

@mrjbq7
Copy link
Member

mrjbq7 commented Jul 6, 2018

Do these instructions work for you? It appears you don't have the underlying ta-lib C library installed properly for 64-bit.

#127 (comment)

@yuuSiVo
Copy link

yuuSiVo commented Nov 27, 2018

I have same installation error

HTS_audio.obj : error LNK2001: unresolved external symbol "__imp_waveOutPrepareHeader"
HTS_audio.obj : error LNK2001: unresolved external symbol "__imp_waveOutOpen"
HTS_audio.obj : error LNK2001: unresolved external symbol "__imp_waveOutReset"
HTS_audio.obj : error LNK2001: unresolved external symbol "__imp_waveOutClose"
HTS_audio.obj : error LNK2001: unresolved external symbol "__imp_waveOutUnprepareHeader"
HTS_audio.obj : error LNK2001:unresolved external symbol "__imp_waveOutWrite"
build\lib.win-amd64-3.6\htsengine.cp36-win_amd64.pyd : fatal error LNK1120: 6 unresolved externals
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe' failed with exit status 1120

@kujtim009
Copy link

for me it worked when I Installed 64 bit of latest python

@Pardeep-007
Copy link

_________ IT WORKED FOR ME_______________

  1. Remove the existing installation of python... and all the files even python folder.
  2. Make sure you download python from www.python.org.
  3. Make sure you are downloading 32 bit for 32 bit machine and 64bit for 64 bit machine..
  4. after installation set path..
  5. run command pip install mod_wsgi
    ENJOY

@Cryptodad161
Copy link

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.

@mrjbq7
Copy link
Member

mrjbq7 commented Oct 12, 2019 via email

@Cryptodad161
Copy link

Cryptodad161 commented Oct 12, 2019 via email

@millionarecoin
Copy link

How did you all resolve this?

@millionarecoin
Copy link

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)

@mrjbq7
Copy link
Member

mrjbq7 commented Oct 16, 2019 via email

@mrjbq7
Copy link
Member

mrjbq7 commented Apr 16, 2022

Closing all installation issues, if someone has a specific problem please open a new one.

@mrjbq7 mrjbq7 closed this as completed Apr 16, 2022
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

10 participants