Reputation: 3
I am trying to connect to ibm_db through python but it says the error
import ibm_db
Traceback (most recent call last):
File "<ipython-input-1-fe3bb08c8a05>", line 1, in <module>
import ibm_db
ModuleNotFoundError: No module named 'ibm_db'
As suggested in many other sites I tried to re-install using
pip install ibm_db==2.0.8a
but that does not install either
import ibm_db
Traceback (most recent call last):
File "<ipython-input-1-fe3bb08c8a05>", line 1, in <module>
import ibm_db
ModuleNotFoundError: No module named 'ibm_db'
I expect the ibm_db
to get connected
db I am trying to connect is on the cloud
I am not sure if there is any setting I am missing here.
Any pointers or suggestions will be of great help.
Thanks all.
Upvotes: 0
Views: 13880
Reputation: 21
pip install ibm-db==3.0.1
here is the link: https://pypi.org/project/ibm-db/3.0.1/
Upvotes: 2
Reputation: 4248
What Python version are you using?
If you're using python 3 you should install it using pip3
pip3 install ibm_db==2.0.8a
Give it a shot.
Upvotes: 2