I have installed Python 3.12.5 and Visual studio. I have followed the steps mentioned in the link https://github.com/ibmdb/python-ibmdb/blob/master/INSTALL.md (Step 1) . Executed the below command,
pip install ibm_db
import ibm_db >> this resulted in error ImportError: DLL load failed while importing ibm_db: The specified module could not be found
Executed the below commands to overcome the error in python
import os
os.add_dll_directory('C:\Python\Python312\Lib\site-packages\clidriver\bin')
import ibm_db
Tried to execute the below code in visual studio and resulted in error ImportError: DLL load failed while importing ibm_db: The specified module could not be found
import ibm_db
ibm_db.connect("DATABASE=name;HOSTNAME=host;PORT=60000;PROTOCOL=TCPIP;UID=username;
PWD=password;", "", "")
print('connection successful')
I’m not sure whether I’m missing any step as I tried to execute import ibm_db from python still it results in the same error.