python3安装ibm_db
在安装好python3之后,使用pip install ibm_db
总是报错。
然后按照官方文档的说明添加了环境变量IBM_DB_HOME
,
同时在命令行执行easy_install ibm_db
就可以正常安装了。
然后可以在命令行执行python
,然后在python命令行下执行import ibm_db
就可以了。
另一种解决办法(未测试过):
This is a know issue with v 2.0.8 of ibm_db on Win7, since fixed, you can either install the fixed version or the previous version.
See github report
To install the fixed version:
pip install "ibm-db==2.0.8a"
To install the previous version:
pip install "ibm-db<2.0.8"