You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- For other pre-requisite and non-wheel installation, please check [here](https://github.com/ibmdb/python-ibmdb?tab=readme-ov-file#installation).
58
58
59
59
**Note:**
60
-
When we install ibm_db package on Linux, MacOS and Windows, `pip install ibm_db` command install
61
-
prebuilt Wheel package that includes clidriver too and ignores `IBM_DB_HOME` or `IBM_DB_INSTALLER_URL`
62
-
environment variables if set. Also, auto downloading of clidriver does not happen as clidriver is
63
-
already present inside wheel package.
64
60
65
-
To inforce auto downloading of clidriver or to make setting of environment variable `IBM_DB_HOME`
66
-
effective, install ibm_db from source distribution using below command:
61
+
- When we install ibm_db package on Linux, MacOS and Windows, `pip install ibm_db` command install prebuilt Wheel package that includes clidriver too and ignores `IBM_DB_HOME` or `IBM_DB_INSTALLER_URL` environment variables if set. Also, auto downloading of clidriver does not happen as clidriver is already present inside wheel package.
62
+
63
+
- If `db2cli validate` command works in your system and installed db2 client/server
64
+
has `include` directory, ibm_db installation from souce distribution will not download clidriver, but it will use the existing client/server from the system. But, installation using wheel image will not use existing clidriver.
65
+
66
+
- To inforce auto downloading of clidriver _OR_ to make setting of environment variable `IBM_DB_HOME` or `IBM_DB_INSTALLER_URL` or `CLIDRIVER_VERSION` effective; install ibm_db from source distribution using below command:
- When ibm_db get installed from wheel package, you can find clidriver under site_packages directory of Python. You need to copy license file under `site_packages/clidriver/license` to be effective, if any.
87
+
88
+
**Note:** For windows after installing `ibm_db`, recieves the below error when we try to import ibm_db :
82
89
83
90
```>python
84
91
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
@@ -106,9 +113,13 @@ Refer https://bugs.python.org/issue36085 for more details.
106
113
107
114
#### 1.2 Manual Installation
108
115
116
+
Make sure you have Python, pip and git installed in your system.
117
+
109
118
```
119
+
python -m pip --version => Make sure it works, else install pip first.
Copy file name to clipboardExpand all lines: README.md
+7-15Lines changed: 7 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,11 +46,13 @@ If you face problems due to missing python header files while installing the dri
46
46
or
47
47
yum install python-devel
48
48
```
49
+
49
50
If you have installed `DB2_RTC*` i.e. **DB2 Runtime Client** and want `ibm_db` to use it instead of clidriver, please read [this comment](https://github.com/ibmdb/python-ibmdb/issues/1023#issuecomment-3062805368) and take action.
50
51
51
52
- clidriver v12.1 on Linux uses x86_64_v2 instruction set which is not supported by cibuildwheel and wheel image creation [fails](https://github.com/pypa/manylinux/issues/1725) using v12.1 clidriver. So, default version of clidriver on Linux platform is v11.5.9 only.
52
53
53
54
- You can force installation of ibm_db on Linux with clidriver v12.1 using below commands:
- When we install ibm_db package on Linux, MacOS and Windows, `pip install ibm_db` command install
90
-
prebuilt Wheel package that includes clidriver too and ignores `IBM_DB_HOME` or `IBM_DB_INSTALLER_URL`
91
-
or `CLIDRIVER_VERSION` environment variables if set. Also, auto downloading of clidriver does not happen
92
-
as clidriver is already present inside wheel package.
91
+
- When we install ibm_db package on Linux, MacOS and Windows, `pip install ibm_db` command install prebuilt Wheel package that includes clidriver too and ignores `IBM_DB_HOME` or `IBM_DB_INSTALLER_URL` or `CLIDRIVER_VERSION` environment variables if set. Also, auto downloading of clidriver does not happen as clidriver is already present inside wheel package.
93
92
94
-
- For platforms not supported by python-wheel, ibm_db will get installed from souce distribution.
95
-
GCC compiler is required on non-windows platform and VC++ compiler on Windows platform to
96
-
install `ibm_db` from souce distribution.
93
+
- For platforms not supported by python-wheel, ibm_db will get installed from souce distribution, GCC compiler is required on non-windows platform and VC++ compiler on Windows platform to install `ibm_db` from souce distribution.
97
94
98
95
- If `db2cli validate` command works in your system and installed db2 client/server
99
-
has `include` directory, ibm_db installation from souce distribution will not download clidriver, but
100
-
it will use the existing client/server from the system.
96
+
has `include` directory, ibm_db installation from souce distribution will not download clidriver, but it will use the existing client/server from the system.
101
97
102
-
- To inforce auto downloading of clidriver _OR_ to make setting of environment variable `IBM_DB_HOME` or
103
-
`IBM_DB_INSTALLER_URL` or `CLIDRIVER_VERSION` effective; install ibm_db from source distribution
104
-
using below command:
98
+
- To inforce auto downloading of clidriver _OR_ to make setting of environment variable `IBM_DB_HOME` or `IBM_DB_INSTALLER_URL` or `CLIDRIVER_VERSION` effective; install ibm_db from source distribution usin below command:
- ibm_db will override value of CLIDRIVER_VERSION to v12.1.0 for MacARM64 and to v11.5.9 for Macx64 platform.
125
119
126
-
- When ibm_db get installed from wheel package, you can find clidriver under site_packages directory
127
-
of Python. You need to copy license file under `site_packages/clidriver/license` to be effective, if any.
120
+
- When ibm_db get installed from wheel package, you can find clidriver under site_packages directory of Python. You need to copy license file under `site_packages/clidriver/license` to be effective, if any.
128
121
129
122
**Note:** For windows after installing ibm_db, recieves the below error when we try to import ibm_db :
130
123
@@ -532,7 +525,6 @@ If you intend to install the clidriver manually, Following are the details of th
0 commit comments