解决cx

tech2025-06-05  11

使用python操作oracle的时候遇到这样的报错

cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "C:\oraclexe\app\oracle\product\11.2.0\server\bin\oci.dll is not the correct architecture". See https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html for help

这个是因为我的oracle client是32位的,但是我的python和cx_oracle是64位的,三者不一致导致的

 

解决方法:

下载64的的oracle client,解压后把路径加入环境变量path,重启IDE。

最新回复(0)