fehlgeschlagen Hope alle sind super !!! Ich versuche, meine DB2 mit Python zu verbinden, damit ich Datenbanktransaktionen durch PyCharm entwickeln kann.Python - ibm_db Modul installieren: "link.exe" mit dem Exit-Status 1120
Ich habe Python Python 3.6.1 (32-Bit-Version) auf meinem Rechner installiert.
Und ich versuche zu installieren "ibm_db" Modul DB2-Datenbank im Zusammenhang Transaktion von Python ausführen, so lief ich diesen Befehl
C:\Users\SudipGhosh\AppData\Local\Programs\Python\Python36-32>easy_install ibm_db-2.0.5-py3.3-win32.egg ibm_db-2.0.7.tar.gz
Processing ibm_db-2.0.5-py3.3-win32.egg
removing 'c:\users\sudipghosh\appdata\local\programs\python\python36-32\lib\site-packages\ibm_db-2.0.5-py3.3-win32.egg' (and everything under it)
creating c:\users\sudipghosh\appdata\local\programs\python\python36-32\lib\site-packages\ibm_db-2.0.5-py3.3-win32.egg
Extracting ibm_db-2.0.5-py3.3-win32.egg to c:\users\sudipghosh\appdata\local\programs\python\python36-32\lib\site-packages
ibm-db 2.0.5 is already the active version in easy-install.pth
Installed c:\users\sudipghosh\appdata\local\programs\python\python36-32\lib\site-packages\ibm_db-2.0.5-py3.3-win32.egg
Processing dependencies for ibm-db==2.0.5
Searching for ibm-db==2.0.5
Reading https://pypi.python.org/simple/ibm-db/
Downloading https://pypi.python.org/packages/df/3e/db8ac8d4a2b49c27ad2a90d5b1b9a4673933c4e3dfd777849e7e7e4b8a79/ibm_db-2.0.5.tar.gz#md5=73ed86f4cf423fc608db95403ba988e4
Best match: ibm-db 2.0.5
Processing ibm_db-2.0.5.tar.gz
Writing C:\Users\SUDIPG~1\AppData\Local\Temp\easy_install-_5givnbi\ibm_db-2.0.5\setup.cfg
Running ibm_db-2.0.5\setup.py -q bdist_egg --dist-dir C:\Users\SUDIPG~1\AppData\Local\Temp\easy_install-_5givnbi\ibm_db-2.0.5\egg-dist-tmp-ay___k95
Detected 32-bit Python
C:\Users\SUDIPG~1\AppData\Local\Temp\easy_install-_5givnbi\ibm_db-2.0.5\setup.py:52: UserWarning: Detected usage of IBM Data Server Driver package. Ensure you have downloaded 32-bit package of IBM_Data_Server_Driver and retry the ibm_db module install
warnings.warn(notifyString)
ibm_db.c
ibm_db.c(5326): warning C4018: '<=': signed/unsigned mismatch
ibm_db.c(5330): warning C4018: '<=': signed/unsigned mismatch
ibm_db.c(5342): warning C4018: '<=': signed/unsigned mismatch
ibm_db.c(5456): warning C4018: '<=': signed/unsigned mismatch
ibm_db.c(9643): warning C4244: 'function': conversion from 'SQLINTEGER' to 'SQLSMALLINT', possible loss of data
Creating library build\temp.win32-3.6\Release\ibm_db.cp36-win32.lib and object build\temp.win32-3.6\Release\ibm_db.cp36-win32.exp
ibm_db.obj : error LNK2001: unresolved external symbol [email protected]
ibm_db.obj : error LNK2001: unresolved external symbol [email protected]
ibm_db.obj : error LNK2001: unresolved external symbol [email protected]
.... und so weiter ...
ibm_db.obj : error LNK2001: unresolved external symbol [email protected]
**build\lib.win32-3.6\ibm_db.cp36-win32.pyd : fatal error LNK1120: 46 unresolved externals
error: Setup script exited with error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\link.exe' failed with exit status 1120**
Ich installierte Visual Studio auf meinem Computer (Visual C++ 2015 Build Tools), wie es erforderlich war, und ich habe den Fehler wie erwähnt erhalten.
Mein OS ist: Windows 10 64-Bit-
Kann bitte jemand auf diesem helfen?
Es sieht so aus, als ob Sie den IBM Data Server-Client nicht installiert oder falsch installiert haben. – mustaccio
@mustaccio, Vielen Dank für Ihre Antwort, aber ich habe IBM Data Server-Client und immer noch kein Glück installiert. Bitte, lassen Sie es mich wissen, wenn ich irgendeine ENV Variable setzen muss, wenn ja, wie und wo? –